• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Aliases & fileAttributesAtPath:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Aliases & fileAttributesAtPath:
      • From: Markus Hitter <email@hidden>
    • Re: Aliases & fileAttributesAtPath:
      • From: Mike Shields <email@hidden>
References: 
 >Aliases & fileAttributesAtPath: (From: Andre Lipinski <email@hidden>)

  • Prev by Date: Re: Quit menu when Modal Sheet is showing?
  • Next by Date: Re: Aliases & fileAttributesAtPath:
  • Previous by thread: Aliases & fileAttributesAtPath:
  • Next by thread: Re: Aliases & fileAttributesAtPath:
  • Index(es):
    • Date
    • Thread