Test if a file is local or via file sharing?
Test if a file is local or via file sharing?
- Subject: Test if a file is local or via file sharing?
- From: email@hidden
- Date: Sat, 06 Mar 2004 17:05:37 -0500
I've bumped into something I expected to be easy, and it's proving to be hard.
Given an NSString with a path to a file, I need to know if this file is on a local disk or on a disk that's mounted via file sharing.
I expected [NSWorkspace mountedLocalVolumePaths] to help, but it also returns the filesharing-mounted volumes as though they were local. Using Carbon, I've been exploring the fsref, fsspec, volumeinfo, and so on, of the file, but I haven't yet found anything that answers this question. I'm thinking maybe the FileSystemID somehow encodes, or leads to, information that would help. But I can't find any info to dig deeper into that.
Any suggestions on an approach to this problem?
Thanks
Richard
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.