Java bekommt aktuelle freie Disc -Space

/**Get the current free disc size of the system
* @return The disc size of the system as a long value 
* **/
public static long discSize() {
  File diskPartition = new File("C:");
  long freePartitionSpace = diskPartition.getFreeSpace();
  return freePartitionSpace;
}
Karamolegkos