• 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
Re: Getting available free disk space on disk image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting available free disk space on disk image


  • Subject: Re: Getting available free disk space on disk image
  • From: Paul Archibald <email@hidden>
  • Date: Tue, 28 Oct 2008 14:57:01 -0700

Oooops. It looks like I lied.

Actually, I am using
[[[myFileManager fileSystemAttributesAtPath:[mountedDiskImagePath stringByDeletingLastPathComponent]
...]


I think it was because sometimes the path included a filename. I am going to change it to use the full path. I never noticed this problem until I tried to copy to the root level of a disk, which is not the normal way this app would be used. Isn't that what QA is for?

(5 minutes later)

That works, I think. I will need to test it some more before I am certain.
On Oct 28, 2008, at 2:17 PM, Clark Cox wrote:


On Tue, Oct 28, 2008 at 2:15 PM, Paul Archibald <email@hidden> wrote:
This is pretty obscure, I think.

My app makes files which can be quite large. It also allows the user to
distribute copies of those files to various locations. So, to test this I
have tried creating and mounting a disk image which I tried making a copy
to.


The problem is that it seems I cannot check the actual available space on
that mounted disk image. What I get instead is the available space on the
disk where the image lives.


I am using [[myFileManager fileSystemAttributesAtPath:mountedDiskImagePath]
objectForKey:NSFileSystemFreeSize];

Is mountedDiskImagePath the path to the disk image itself, or to the place at which the image is mounted?


-- Clark S. Cox III email@hidden


_______________________________________________

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


References: 
 >Getting available free disk space on disk image (From: Paul Archibald <email@hidden>)
 >Re: Getting available free disk space on disk image (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Re: performSelectorOnMainThread and exceptions
  • Next by Date: Re: Controller and NIB
  • Previous by thread: Re: Getting available free disk space on disk image
  • Next by thread: Getting a file's icon
  • Index(es):
    • Date
    • Thread