Variables (attributes)
Here are all attributes of files and directories.
Time of last access to a file or a directory.
Attribute archive of a file or a directory.
Inode change time of a file or a directory.
If certain operating system does not use this metadata property, then last modification time is returned instead.
Attribute compressed of a file or a directory.
Creation time of a file or a directory.
If certain operating system does not support this metadata property, then last modification time is returned instead.
This value describes how deep certain file or directory lies in the file system.
Elements 'a.txt', and 'c:/' have depth 0.
Elements 'a/b/c.txt', 'c:/e/f.png' and 'i/j/k///' have depth 2.
Value '.' means current working location, so it has depth -1.
Double dots decrement the depth, so the directory '../../../dirname' has depth -3.
Get duration of this file using FFmpeg.
Works only for videos.
Disk drive from path to current element.
This value is either an empty string (for wrong ) or a string consisting of two characters.
The first character is a lowercase letter, while the second one is a colon.
If certain operating system does not support drive letters, then this value is always empty string.
This variable returns value true if and only if current element exists in the file system and is empty.
Attribute encrypted of a file or a directory.
A boolean value that indicates whether current element exists in the file system (no matter if it is a file or a directory).
Extension of a file or empty string (if current element is a directory).
Extension is always expressed in lowercase letters. If certain file name contains multiple extensions, returned is the last one.
Name of a file including its extension or simply name of a directory.
Get height of this file using FFmpeg.
Works only for images and videos.
Improper elements have NaN height.
Attribute hidden of a file or a directory.
A boolean value that indicates whether current element is a directory.
If current element does not exist in the file system and would be allowed as a name of directory, then returned is alleged value based on occurence of an extension.
A boolean value that indicates whether current element is a file.
If current element does not exist in the file system and would be allowed as a name of directory, then returned is alleged value based on occurence of an extension.
Use FFmpeg to check whether this file is an image. Returns false if this element is a directory, does not exist or in case of errors.
Mutually exclusive with isVideo.
Use FFmpeg to check whether this file is a video. Returns false if this element is a directory, does not exist or in case of errors.
Mutually exclusive with isImage.
Difference between current moment and creation time or last modification time of an element (depending on which one is older).
Last modification time of a file or a directory.
Name of a file without its extension. If current element is a directory, then returned is simply its name as they never have extensions.
Absolute path to current element.
Parent directory of path to current element. This either an absolute path or an empty string (wrong value).
Attribute read-only of a file or a directory.
Size of a file or a directory is expressed as a number of bytes. Nonexistent elements have NaN size.
Get width of this file using FFmpeg.
Works only for images and videos.
Improper elements have NaN width.