Java Disk Free Space Get getFreeSpace(String pathname)

Here you can find the source of getFreeSpace(String pathname)

Description

get Free Space

License

Open Source License

Declaration

public static long getFreeSpace(String pathname) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;
import java.io.IOException;

public class Main {
    public static long getFreeSpace(String pathname) throws IOException {
        return (new File(pathname)).getUsableSpace();
    }/*from   w  w w .  j a v a  2  s . c o m*/
}

Related

  1. getFreeSpace(File directory)
  2. getFreeSpace(File file)
  3. getFreeSpace(String dir)
  4. getFreeSpaceOnPartition(File f)
  5. getTreeSize(File root)
  6. getTreeSize(File root)
  7. getUnixFreeSpace(String pathname)