• 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
How to ResolvingSymlinksInPath ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to ResolvingSymlinksInPath ?


  • Subject: How to ResolvingSymlinksInPath ?
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 02 Nov 2016 16:11:04 +0700

I want to remove all symlinks from a path.

stringByResolvingSymlinksInPath does NOT do this (e.g. it does not change: /tmp to: /private/tmp).

Currently I am using:

int fd = open( filename, O_EVTONLY );
fcntl( fd, F_GETPATH, buffer );
close(fd);

Is there something better or more suitable?
macOS 12.1.

Gerriet.





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: 'method' is partial: introduced in macOS 10.8
  • Next by Date: NSCollectionView isn't playing nicely with selection binding
  • Previous by thread: 'method' is partial: introduced in macOS 10.8
  • Next by thread: Re: How to ResolvingSymlinksInPath ?
  • Index(es):
    • Date
    • Thread