• 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
How to get a volume free size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get a volume free size?


  • Subject: How to get a volume free size?
  • From: Lorenzo <email@hidden>
  • Date: Thu, 13 Nov 2003 11:11:32 +0100

Hi,
I am used to get the free size of a volume this way:

manager = [NSFileManager defaultManager];
fsAttribute = [manager fileSystemAttributesAtPath:existingFolderPath];
freeBytes = [fsAttribute objectForKey:NSFileSystemFreeSize];

On Jaguar it works very well even on webDave volumes mounted on the desktop.
Now, running on Panther, whenever my application mets a webDav volume,
returns freeBytes = -512. Such a negative is impossible, so I suppose
something changed on Panther.

Does anyone know what could be happened?
Is it a known Panther's bug?

Thank you.


Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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:
    • programmatically setting the file name?
      • From: Jérôme Laurens <email@hidden>
  • Prev by Date: Re: Recursive Downloads (FTP/CURL?)
  • Next by Date: programmatically setting the file name?
  • Previous by thread: Re: images as tabviewitems
  • Next by thread: programmatically setting the file name?
  • Index(es):
    • Date
    • Thread