File Manager (High Level)
System 7.0 Traps
FSMakeFSSpec FSpDirCreate FSpOpenRF FSpSetFLock
FSpCatMove FSpEx changeFiles FSpRename HOpenDF
FSpCreate FSpGetFInfo FSpRstFLock OpenDF
FSpDelete FSpOpenDF FSpSetFInfo
File Manager Data
About Asynchronous I/O
File Manager Caches
File Manager Extensions
Searching All Directories On An HFS Volume
Which File System Is Active
System 7.0 Topics
About the File Manager and System 7.0
Identifying Files, Directories, and Volumes
A Simpler Safe-Save Strategy
Limitations on MFS Disks
High-Level File Manager Routines
New Special-Purpose Features in the File Manager
Using the File Manager
Code Examples
Getting a Full Pathname
Access Files
FSOpen Open the data fork of an existing file
FSRead Read from open file
FSWrite Write data from memory to a file
FSClose Close a file
GetFPos Obtain position of the file mark of an open file
SetFPos Position file mark for random-access read/ write
GetEOF Obtain the size of an open file (logical EOF)
SetEOF Increase or decrease the logical size of a file
Allocate Increase the physical size of an open file
Create/Delete Files
Create Create a new empty file (both forks)
FSDelete Delete an unopened file or empty directory
File Information
Rename Change the name of a file or directory
GetFInfo Obtain file type, creator, icon position, etc.
SetFInfo Change file type, creator, icon position, etc.
RstFLock Unlock a file (allow changes, deletion, renaming, etc.)
SetFLock Lock a file (prevent changes, deletion, renaming, etc.)
Access Volumes
GetVInfo Get volume name, reference number and free bytes
GetVRefNum Get volume reference number of an open file
GetVol Obtain name and reference number of default volume
SetVol Select a new default volume or working directory
FlushVol Update disk with any unwritten data
UnmountVol Flush volume, close its files, release its memory
Eject Eject a volume from its drive
Resource fork operations
OpenRF Open the resource fork of an existing file
File system queues
FInitQueue Clear en queued File Manager calls
GetDrvQHdr Obtain pointer to the drive queue header
GetFSQHdr Obtain pointer to the file I/O queue header
GetVCBQHdr Obtain pointer to the volume control block queue header
Other High Level Calls
AddDrive add a drive to the drive queue
AllocContig Allocate contiguous space on disk
CatMove Transfer file or directory to another directory on the same
volume
CloseWD Close and release a working directory
DirCreate Create a directory
GetWDInfo Query information about an existing working directory
HCreate Create a new file like PBHCreate and set type and creator
HDelete Delete an unopened file or empty directory
HGetFInfo Obtain file type, creator, icon position, etc.
HGetVol Obtain default volume/directory name and reference
HOpen Open the data fork of a file
HOpenRF Open the resource fork of an existing file
HRename Rename a file, volume, or directory
HRstFLock Unlock a file (allow changes, deletion, renaming, etc.)
HSetFInfo Change file type, creator, icon position, etc.
HSetFLock Lock a file (prevent changes, deletion, renaming, etc.)
HSetVol Select a default default volume/directory (HFS only)
RstFLock Unlock a file (allow changes, deletion, renaming, etc.)
FSMakeFSSpec Convert a file or directory spec into an FSSpec record
FSpEx changeFiles Swap the files' data
FSpOpenDF Create an access path to the data fork of a file
FSpOpenRF Create an access path to the resource fork of a file
FSpCreate Create a new file and set the type and creator
FSpDirCreate Create a new directory
FSpDelete Remove a closed file
FSpGetFInfo Get Finder information
FSpSetFInfo Set the Finder information
FSpSetFLock Lock a file
FSpRstFLock Unlock a file
FSpRename Change a file's name
FSpCatMove Change a file's location
HOpenDF Create an access path to the data fork of a file
OpenDF Create an access path to the data fork of a file