Re: How to programmatically mount a disk/volume using only a given file path?
Re: How to programmatically mount a disk/volume using only a given file path?
- Subject: Re: How to programmatically mount a disk/volume using only a given file path?
- From: Shantonu Sen <email@hidden>
- Date: Wed, 02 Jan 2013 18:25:37 -0800
Use bookmarks: <http://developer.apple.com/library/Mac/#documentation/FileManagement/Conceptual/FileSystemProgrammingGUide/AccessingFilesandDirectories/AccessingFilesandDirectories.html#//apple_ref/doc/uid/TP40010672-CH3-SW10>
Shantonu
On Jan 2, 2013, at 5:03 PM, Tennis Stringer Dude <email@hidden> wrote:
> Hello,
>
> I have a list of file paths. These paths may lead to files on unmounted
> Volumes. How can I programmatically tell the OS to mount the volume before I
> try to access the file?
>
> I know this is possible somehow, as iTunes appears to do it. For example, if
> I initiate playback of a song located on an unmounted network attached
> volume in iTunes, the volume is mounted automatically for me.
>
> Is the OS supposed to mount the volume automatically for me if I attempt to
> open the file programmatically at the specified path? In my testing, it
> appears the answer is no. Or do I need to mount the drive manually using the
> Disk Arbitration framework or something similar?
>
> If I need to use the Disk Arbitration framework, can you cite sample code?
>
> P.S.: I listed this question on stackoverflow at [1] about a month ago with
> no response. Decided to try here as well.
>
> [1]
> http://stackoverflow.com/questions/13426063/programmatically-mount-a-disk-vo
> lume-using-only-a-given-file-path-in-mac-os-x
>
> -Jared
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Filesystem-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden