Re: How to discover the volume id to use in a File Reference URL
Re: How to discover the volume id to use in a File Reference URL
- Subject: Re: How to discover the volume id to use in a File Reference URL
- From: Ken Thomases <email@hidden>
- Date: Tue, 24 Sep 2013 03:54:26 -0500
On Sep 24, 2013, at 3:24 AM, Ben Staveley-Taylor wrote:
> The reason I want to do this is to discover the textual path of a file given its file ID (and a volume name).
> So I suppose my real question is how to find the path for a file by its id (its fileSystemFileNumber attribute).
How is it that you've come to have a file ID and volume name and nothing else? This sounds like a situation where you should have stored bookmark data but stored something less useful.
I believe one solution is the searchfs() routine. Of course, that's a potentially slow or expensive operation. In theory, I suppose, searching for a file by its ID should be no slower than converting a file reference URL to a file path URL.
Regards,
Ken
_______________________________________________
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