MCPcopy Index your code
hub / github.com/processing/processing / calcSize

Method calcSize

app/src/processing/app/Util.java:350–352  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 /**

Callers 1

doInBackgroundMethod · 0.95

Calls 1

calcFolderSizeMethod · 0.95

Tested by

no test coverage detected