• 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: How to get non-resolved FSRef from POSIX path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get non-resolved FSRef from POSIX path


  • Subject: Re: How to get non-resolved FSRef from POSIX path
  • From: Brian Webster <email@hidden>
  • Date: Tue, 27 Jan 2004 11:13:04 -0600

I don't know if this will work or not, but you might try using CFURL to do the translation instead. First call CFURLCreateWithFileSystemPath(), and then call CFURLGetFSRef() on the resulting URL. It might just do the same thing as FSPathMakeRef(), but it's probably worth a shot.

The other function you might try is FSMakeFSRefUnicode(). First, make an FSRef to the parent directory of the symbolic link. Then, use that function and pass in that FSRef and the name of the link file.

On Jan 26, 2004, at 10:00 PM, Calvin Chen wrote:

Hi,

Given a POSIX path of symbolic link, how do I get an unresolved FSRef from
it?

When I pass symbolic link POSIX path to FSPathMakeRef() and then use
FSRefMakePath() I always got the resolved path that recorded in that
symbolic link.

Is there any way I can have the right FSRef point to the real symbolic link
file instead of the solved file/folder?

Best regards,
Calvin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How to get non-resolved FSRef from POSIX path
      • From: "M. Uli Kusterer" <email@hidden>
References: 
 >How to get non-resolved FSRef from POSIX path (From: Calvin Chen <email@hidden>)

  • Prev by Date: Best way to implement calling another controller/class?
  • Next by Date: Re: Custom Bindings clarification
  • Previous by thread: How to get non-resolved FSRef from POSIX path
  • Next by thread: Re: How to get non-resolved FSRef from POSIX path
  • Index(es):
    • Date
    • Thread