Function to return the length of the file, or entire directory, including the component files and sub-folders if passed. @param file The file or folder to calculate
(File file)
| 348 | * @param file The file or folder to calculate |
| 349 | */ |
| 350 | static public long calcSize(File file) { |
| 351 | return file.isFile() ? file.length() : Util.calcFolderSize(file); |
| 352 | } |
| 353 | |
| 354 | |
| 355 | /** |
no test coverage detected