1
Formatting
String
Retrieves the file size and formats it into human-readable units (B, KB, MB, GB).
2
3
Comparators
bool
Checks if the file size is strictly greater than the specified size in Megabytes (MB).
bool
Checks if the file size is strictly less than the specified size in Megabytes (MB).
bool
Checks if this file is larger than another
File object by comparing raw byte counts.bool
Checks if this file is smaller than another
File object by comparing raw byte counts.bool
Checks if this file has the exact same size (byte count) as another [File] object.
bool
Checks if the file size falls inclusively between the specified minimum and maximum sizes in Megabytes (MB).
4
Manipulators
double
Calculates the file’s size as a percentage of a given total size limit.
