Re: Aliases & fileAttributesAtPath:
Re: Aliases & fileAttributesAtPath:
- Subject: Re: Aliases & fileAttributesAtPath:
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 12 Oct 2001 00:27:46 -0700
On Thursday, October 11, 2001, at 02:53 PM, Andre Lipinski wrote:
Hello,
What's to scoop on fileAttributesAtPath calling an alias a
NSFileTypeRegular?!
It's not a directory or a bundle, is it?
Clearly an Alias is not a "regular file" as identified by the path.
It might as well be, and that that's what it's reporting.
With a response like this from fileAttributesAtPath one could believe
that an alias is in fact the file it points to! How can you get around
this?
I think you'll have to resort to Carbon calls to find out if a given
path has an alias. Aliases are very much like UFS hard links; they
don't break if the file they point to is moved or renamed.
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him with
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.