Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 2 - File Manager / About the File Manager


Directory Manipulation

The File Manager provides a number of routines that allow you to manipulate directories. For example, you can create and delete directories, get information about a directory, and move and rename directories. The directory manipulation routines are listed in Table 2-2.
Table 2-4 Routines for operating on directories
FSSpec HFS High-LevelHFS Low-LevelDescription
FSpDirCreateDirCreatePBDirCreateCreate a directory.
FSpDeleteHDeletePBHDeleteDelete a directory.
FSpGetFInfoHGetFInfoPBHGetFInfoGet Finder information for
a directory.
FSpSetFInfoHSetFInfoPBHSetFInfoSet Finder information for
a directory.
FSpSetFLockHSetFLockPBHSetFLockLock a directory.
FSpRstFLockHRstFLockPBHRstFLockUnlock a directory.
FSpCatMoveCatMovePBCatMoveMove a file or directory within a volume.
FSpRenameHRenamePBHRenameRename a file or directory.
  PBGetCatInfoGet information about a file
or directory.
  PBSetCatInfoSet information about a file
or directory.

The File Manager includes a number of routines that allow you to manipulate working directories. See Table 2-2. Most applications do not need to use working directories.
Table 2-5 Routines for manipulating working directories
High-Level Low-LevelDescription
OpenWDPBOpenWDOpen a working directory.
CloseWDPBCloseWDClose a working directory.
GetWDInfoPBGetWDInfoGet information about a working directory.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996