-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Description
There are three methods for dealing with overall filesystem space:
/**
* Return The total size in bytes of this file system.
*
* @return total size in bytes or -1 if this feature is unsupported.
* @throws IOException if an I/O error occurs
*/
public long getTotalSpace() throws IOException;
/**
* The total free space in bytes of this file system.
*
* @return total free space in bytes or -1 if this feature is unsupported
* @throws IOException if an I/O error occurs
*/
public long getFreeSpace() throws IOException;
/**
* The usable space of this file system.
*
* @return usable space in bytes or -1 if this feature is unsupported
* @throws IOException if an I/O error occurs
*/
public long getUsableSpace() throws IOException;
It's pretty obvious what "total space" is, but the difference between the other two is less clear from the docs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels