• 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: 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


References: 
 >Re: Aliases & fileAttributesAtPath: (From: Mike Shields <email@hidden>)
 >Re: Aliases & fileAttributesAtPath: (From: Ondra Cada <email@hidden>)

  • Prev by Date: NSOutlineView & NSTextView style/formatting questions
  • Next by Date: Re: Finder-like icon browser
  • Previous by thread: Re: Aliases & fileAttributesAtPath:
  • Next by thread: Re: Aliases & fileAttributesAtPath:
  • Index(es):
    • Date
    • Thread