How to ResolvingSymlinksInPath ?
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