• 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
Checking to see if a server volume is already mounted?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Checking to see if a server volume is already mounted?


  • Subject: Checking to see if a server volume is already mounted?
  • From: Adhamh Findlay <email@hidden>
  • Date: Tue, 30 Oct 2007 16:33:48 -0500

Hello,

I'm using FSMountServerVolumeSync in a thread to mount an iDisk:

FSMountServerVolumeSync((CFURLRef)[dictionary valueForKey: @"url"], NULL, (CFStringRef)[dictionary valueForKey: @"username"], (CFStringRef)[dictionary valueForKey: @"password"], NULL, 1);

However, I don't want to mount the iDisk again if its already mounted. So far I haven't found a way to check and see if the iDisk is already other than checking to see if the /Volume/dotmac_username directory exists. Checking for the directory just seems like a bad idea because the directory can exist even if the iDisk isn't actually mounted.

Any suggestions?

Thanks,

Adhamh
_______________________________________________

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:
    • [Solved] Re: Checking to see if a server volume is already mounted?
      • From: Adhamh Findlay <email@hidden>
  • Prev by Date: Re: Any better way to determine if file is executable?
  • Next by Date: Re: fast, threaded drawing to NSImageView from C ?
  • Previous by thread: [solved] Re: Setting AnimationCurve for implicit animations
  • Next by thread: [Solved] Re: Checking to see if a server volume is already mounted?
  • Index(es):
    • Date
    • Thread