![]() |
FSSpec |
Header: Files.h |
Defines a file system specification structure, which is used to specify the name and location of a file or directory.
struct FSSpec { SInt16 vRefNum; SInt32 parID; StrFileName name; }; typedef FSSpec AGFileFSSpecType;
The volume reference number of the volume containing the specified file or directory.
The directory ID of the directory containing the specified file or directory.
The name of the specified file or directory.
The FSSpec structure can describe only a file or a directory, not a volume. A volume can be identified by its root directory, although the system software never uses an FSSpec structure to describe a volume. (The directory ID of the roots parent directory is fsRtParID, defined in the interface files. The name of the root directory is the same as the name of the volume.)
If you need to convert a file specification into an FSSpec structure, call the function FSMakeFSSpec. Do not fill in the fields of an FSSpec structure yourself.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)