Re: Network volume
Re: Network volume
- Subject: Re: Network volume
- From: Jerry Krinock <email@hidden>
- Date: Tue, 23 Dec 2008 17:29:01 -0800
On 2008 Dec, 23, at 14:02, Nor wrote:
But I don't know which volumes were networks'.
Well, I'd imagine you'd have the same problem if the USB cable on a
local drive was yanked out. So, you need to identify anything not on
the startup volume. I know this is a stupid answer, but actually,
I've done this in an application, and it works. Assuming you've got
the path of a filesystem item,
NSArray* comps = [path pathComponents] ;
if ([[pathComps objectAtIndex:1 isEqualToString:@"Volumes"])
{
// It's a network or non-startup drive!!
Or at least, someone who knows a better way might be irked enough to
give a Holiday Reply :)
_______________________________________________
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