Package org.craftercms.commons.file
Class FileUtils
- java.lang.Object
-
- org.craftercms.commons.file.FileUtils
-
public class FileUtils extends Object
General file manipulation utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringreadableFileSize(long size)Given the size of a file outputs as human readable size using SI prefix.
-
-
-
Method Detail
-
readableFileSize
public static String readableFileSize(long size)
Given the size of a file outputs as human readable size using SI prefix. Base 1024- Parameters:
size- Size in bytes of a given File.- Returns:
- SI String representing the file size (B,KB,MB,GB,TB).
-
-