FileDocCategorySizeDatePackage
CWDSpace.javaAPI DocExample480Tue Feb 14 12:53:14 GMT 2006None

CWDSpace

public class CWDSpace extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    
    File cwd = new File(".");
    System.out.println("Total space on current partition:  " 
      + cwd.getTotalSpace() / (1024 * 1024) + " MB\t");
    System.out.println("Free space on current partition:  " 
      + cwd.getFreeSpace() / (1024 * 1024) + " MB\t");
    System.out.println("Usable space on current partition:  " 
      + cwd.getUsableSpace() / (1024 * 1024) + " MB");