|
Java™ by example!
|
|
|
How can I tell how much free space is on a disk?
Unfortunately, there is no API or method to find out, not even in JDK 1.3. Check out BUG 4057701 in Sun's Bug Parade. Until this bug is fixed, you can try out to execute an external command like dir (Windows) or du (unix) and parse the output:
This code needs to be adapted to be language and platform independent!
Further Information
Author of answer: Joris Van den Bogaert
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|