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: Ben Staveley-Taylor <email@hidden>
- Date: Tue, 24 Sep 2013 11:47:30 +0100
You're right, I should really be storing bookmark data, but I am working on the Mac side of a cross-platfrom product and the full bookmark information is not available to me without a lot of invasive work.
searchfs() sounds like what I need. Thanks very much for the advice.
-- Ben.
On 24 Sep 2013, at 09:54, Ken Thomases <email@hidden> wrote:
> 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