Function

FSIsAliasFile

Determines whether a file system object is an alias file, a data file, or a folder.

Declaration

OSErr FSIsAliasFile(const FSRef *fileRef, Boolean *aliasFileFlag, Boolean *folderFlag);

Parameters

fileRef

A pointer to the file system object to test.

aliasFileFlag

A pointer to a Boolean variable. On return, a value of TRUE indicates that the object specified in the fileRef parameter is an alias file. A value of FALSE indicates that the object is not an alias file.

folderFlag

A pointer to a Boolean variable. On return, a value of TRUE indicates that the object specified in the fileRef parameter is a folder. A value of FALSE indicates that the object is a file.

Return Value

A result code.

Discussion

Table 1 summarizes the information that this function provides about the object specified in the fileRef parameter:

Table 1

Information about a file system object

Alias flag

Folder flag

Object kind

T

F

Alias file

F

F

Data file

F

T

Folder

Note that if fileRef is an alias file, this function does not provide any information about the object to which the alias refers. To find out whether this object is a file or a folder, you can use FSResolveAliasFile.

See Also

Working With Finder Alias Files

FSFollowFinderAlias

Resolves an alias record obtained from a Finder alias file.

Deprecated
FSResolveAliasFile

Resolves an alias contained in an alias file.

Deprecated
FSResolveAliasFileWithMountFlags

Resolves an alias contained in an alias file.

Deprecated