Skip to main content

๐Ÿ“ File and Folder Information

These tools provide info like size or free space for files and folders.


getsizeโ€‹

Returns a fileโ€™s size in bytes.

ArgumentDescription
FILEFile path
size=$(getsize "/sdcard/test.txt")
ui_print "Size: $size bytes"

getfreeโ€‹

Returns free space in a folder in bytes.

ArgumentDescription
FOLDERFolder path
free=$(getfree "/sdcard")
ui_print "Free space: $free bytes"

find_readableโ€‹

Finds readable files using find with custom readability checks.

find_readable <special-opts> find-args
Special OptionDescription
-bytesMax bytes to read.
-min-bytes (-mb)Min readable bytes.
-no-paramsDisables default -type f.
find_readable -bytes 100 -mb 20 /sdcard -name "*.txt"
note

Supports all parameters of the find command, because it is a wrapper of this. Although it is mandatory to place the special options at the beginning.