Class FileUtils

java.lang.Object
org.craftercms.commons.file.FileUtils

public class FileUtils extends Object
General file manipulation utilities.
  • Method Details

    • 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).