• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to discover the volume id to use in a File Reference URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to discover the volume id to use in a File Reference URL
      • From: Charles Srstka <email@hidden>
    • Re: How to discover the volume id to use in a File Reference URL
      • From: Ben Staveley-Taylor <email@hidden>
References: 
 >How to discover the volume id to use in a File Reference URL (From: Ben Staveley-Taylor <email@hidden>)
 >Re: How to discover the volume id to use in a File Reference URL (From: Ken Thomases <email@hidden>)
 >Re: How to discover the volume id to use in a File Reference URL (From: Ben Staveley-Taylor <email@hidden>)

  • Prev by Date: Re: How to discover the volume id to use in a File Reference URL
  • Next by Date: iOS 7 -wantsFullScreenLayout confusion?
  • Previous by thread: Re: How to discover the volume id to use in a File Reference URL
  • Next by thread: Re: How to discover the volume id to use in a File Reference URL
  • Index(es):
    • Date
    • Thread