On Thu, Apr 9, 2009 at 12:11 AM, Adam R. Maxwell <amaxw...@mac.com> wrote: > I recently noticed that you can use F_GETPATH with fcntl(2), but I've no > idea what caveats are associated with it. It might be easier than messing > with inodes directly, anyway?
Good call. I had actually seen this before, but forgot what it was called. When I couldn't find it again, I assumed I had just imagined it.... As for the caveats, at the very least it could fail if the object in question doesn't have a path. I have no idea about other caveats, but it wouldn't surprise me if it could give bad results for files that have been moved, weird filesystems that don't support this, or other things, but I just don't know. Mike _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com