question: private static long freeSpaceCalculation ( String path ) { StatFs stat = new StatFs ( path ) ; long blockSize = stat . getBlockSize ( ) ; long availableBlocks = stat . getAvailableBlocks ( ) ; return availableBlocks * blockSize / 1024 ; }
target:  Given a path return the number of free KB