Re: Aliases & fileAttributesAtPath:
Re: Aliases & fileAttributesAtPath:
- Subject: Re: Aliases & fileAttributesAtPath:
- From: Rosyna <email@hidden>
- Date: Fri, 12 Oct 2001 14:40:41 -0700
However, they don't work across file systems, Aliases work across
file systems and across reboots.(They may not work as well across
reboots if the alias is on UFS a volume).
This is one of those things where Cooca needs to be updated to
support Aliases as well as symlinks.
To find if a file is an alias, get a UTF8 string of the file path,
then feed that to FSPathMakeRef, then take the new FSRef and call
FSIsAliasFile on it. Note: FSIsAliasFile returns an error number, not
a boolean.
FSIsAliasFile(
const FSRef * fileRef,
Boolean * aliasFileFlag,
Boolean * folderFlag); // This cannot be NULL.
Ack, at 10/12/01, Ondra Cada said:
They would, on the other hand, break almost anything what used to work
originally, from shell scripts through posix or BSD API tools to Cocoa
applications.
Soft and hard links though work quite properly with all that.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insane People