• 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
Test if a file is local or via file sharing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Test if a file is local or via file sharing?
      • From: "John C. Daub" <email@hidden>
  • Prev by Date: Re: NSArray cluster class membership
  • Next by Date: NSController, KVC & AppleScript not co-operating
  • Previous by thread: OT: Online Stores
  • Next by thread: Re: Test if a file is local or via file sharing?
  • Index(es):
    • Date
    • Thread