![]() |
FSRef |
Header: Files.h |
Identifies a directory or file, including a volumes root directory.
struct FSRef { UInt8 hidden[80]; }; typedef FSRef FSRefPtr;
This data types purpose is similar to an FSSpec except that an FSRef is completely opaque. An FSRef contains whatever information is needed to find the given object; the internal structure of an FSRef is likely to vary based on the volume format, and may vary based on the particular object being identified.
The client of the File Manager cannot examine the contents of an FSRef to extract information about the parent directory or the objects name. Similarly, an FSRef cannot be constructed directly by the client; the FSRef must be constructed and returned via the File Manager. There is no need to call the File Manager to dispose an FSRef.
To determine the volume, parent directory and name associated with an FSRef, or to get an equivalent FSSpec, use the FSGetCatalogInfo call.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)