List of usage examples for org.apache.commons.io FileSystemUtils freeSpace
public static long freeSpace(String path) throws IOException
From source file:egovframework.rte.fdl.filehandling.FilehandlingServiceTest.java
/** * @throws Exception/*from ww w. j ava2 s . co m*/ */ @SuppressWarnings("deprecation") @Test public void testFileSystemUtils() throws Exception { try { long freeSpace = FileSystemUtils.freeSpace("C:/"); assertTrue(freeSpace > 0); } catch (Exception e) { log.error(e.getCause()); } }