Package org.craftercms.commons.file
Class FileUtils
java.lang.Object
org.craftercms.commons.file.FileUtils
General file manipulation utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
readableFileSize
(long size) Given the size of a file outputs as human readable size using SI prefix.
-
Method Details
-
readableFileSize
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).
-