Re: Path from NSFileHandle?
Re: Path from NSFileHandle?
- Subject: Re: Path from NSFileHandle?
- From: Michael Ash <email@hidden>
- Date: Thu, 9 Apr 2009 11:53:43 -0400
On Thu, Apr 9, 2009 at 12:11 AM, Adam R. Maxwell <email@hidden> 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 (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