public class DiskSpace extends Object
Constructor and Description |
---|
DiskSpace() |
Modifier and Type | Method and Description |
---|---|
static long |
diskUsage(File root)
Calculates the total disk usage (in bytes) of the portion of the file system rooted
at the given path, while printing a summary akin to the standard 'du' Unix tool.
|
static void |
main(String[] args)
Computes disk usage of the path given as a command line argument.
|
public static long diskUsage(File root)
root
- designates a location in the file systempublic static void main(String[] args)