Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Free disk space...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Free disk space...



Eddie Reed <email@hidden> wrote:

>Is there any easy way to get the amount of free space on a drive with java.

There's no way to do it in Java alone. You have to resort to external
libraries.

As already mentioned, JConfig is one way. Another way is my open source
Easy Posix Toolkit:
<http://www.amug.org/~glguerin/sw/#easyposix>

See the MountInfo interface and the Environs.getMounted() method.

A Mac OS X implementation is provided, but none for any other platform.
That is left as an exercise for the interested reader.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.