This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Variables
Guillem Jara edited this page Nov 1, 2021
·
4 revisions
Variables are those stuff that start with an @
. They are dynamic values that change depending on the properties of the file they evaluate, like the name or the size. If you enter something after an @
and it isn't a valid variable name, it will be ignored.
-
name
: filename -
path
: absolute path -
parent
: absolute path to file's directory -
ownerID
: file owner ID (unix-only) -
empty
: true if the file size is less than 1 byte (else false) -
readonly
: true if the file is ro (else false) -
elf
: true if the file is compliant to the Executable & Linkable Format (else false) -
txt
: true if the file is a valid text file (else false) -
hidden
: true if the file is hidden (else false) -
content
: file's content -
line=N
: N line of the file. If N is bigger than file's line count its value will be empty -
size=tb
: file size in terabytes -
size=gb
: file size in gigabytes -
size=mb
: file size in megabytes -
size=kb
: file size in kilobytes -
size=bs
: file size bytes (no decimals) -
sum=md5
: md5 checksum this variable might be removed in the future, md5 is completely broken -
sum=sha1
: sha1 checksum this variable might be removed in the future, sha1 is completely broken -
sum=sha224
: sha224 checksum -
sum=sha256
: sha256 checksum -
sum=sha384
: sha384 checksum -
sum=sha512
: sha256 checksum -
creation=date
: date of file creation (yyyy-mm-dd) -
creation=hour
: hour of file creation (hh:mm:ss) -
lastChange=date
: date of the last modification to the file (yyyy-mm-dd) -
lastChange=hour
: hour of the last modification to the file (hh:mm:ss) -
lastAccess=date
: date of the last access to the file (yyyy-mm-dd) -
lastAccess=hour
: hour of the last access to the file (hh:mm:ss)