Using the File Manager
Using the File Manager Techniques for use
This section provides specific techniques for using the new features of the
File Manager.
You can pass FSSpec records that your application receives from the
Standard File Package and the Finder directly to a set of
high-level File Manager functions.
You can exchange the contents of two files when updating a stored file,
using the FSpExchangeFiles function.
You can search a volume's catalog quickly, looking for files or
directories that meet the criteria you specify, using the PBCatSearch
function.
You can track files within a volume by file number, using the set of
functions that create and manipulate file ID references.
You can mount a remote volume programmatically, without going
through the Chooser, using the remote mounting functions.
You can read and change privilege information in foreign file systems
using the PBGetForeignPrivs and PBSetForeignPrivs functions.
Some of the new File Manager features depend on the system software;
others depend on the characteristics of the volume. Before using any of the new
File Manager features, check for availability by calling either the Gestalt
function or the PBHGetVolParms function, depending on whether the
feature's presence depends on the system software or the characteristics of the
volume.
You can use Gestalt to determine whether or not you can call the functions
that accept and support FSSpec records. Call Gestalt with the gestaltFSAttr
selector to check for File Manager features. The response parameter has two
relevant bits.
Constant Meaning
gestaltFullExtFSDispatching All of the routines selected through the
_HFSDispatch trap macro are available to