Important: The information in this document is obsolete and should not be used for new development.
File System Specification Record
The system software recognizes the file system specification record, which provides a simple, standard way to specify the name and location of a file or directory. The file system specification record is defined by theFSSpec
data type.
TYPE FSSpec = {file system specification} RECORD vRefNum: Integer; {volume reference number} parID: LongInt; {directory ID of parent directory} name: Str63; {filename or directory name} END;The
Field Description
vRefNum
- The volume reference number of the volume containing the specified file or directory.
parID
- The directory ID of the directory containing the specified file or directory.
name
- The name of the specified file or directory.
FSSpec
record 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 anFSSpec
record to describe a volume. (The directory ID of the root's parent directory isfsRtParID
, 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
record, call the functionFSMakeFSSpec
. Do not fill in the fields of anFSSpec
record yourself.
© Apple Computer, Inc.
2 JUL 1996