Variables (attributes)

Here are all attributes of files and directories.


Access

nametype
accesstime
Time of last access to a file or a directory.

Archive

nametype
archivebool
Attribute archive of a file or a directory.

Change

nametype
changetime
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.

Compressed

nametype
compressedbool
Attribute compressed of a file or a directory.

Creation

nametype
creationtime
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.

Depth

nametype
depthnumber
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.

Duration

nametype
durationperiod
Get duration of this file using FFmpeg. Works only for videos.

Drive

nametype
drivestring
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.

Empty

nametype
emptybool
This variable returns value true if and only if current element exists in the file system and is empty.

Encrypted

nametype
encryptedbool
Attribute encrypted of a file or a directory.

Exists

nametype
existsbool
A boolean value that indicates whether current element exists in the file system (no matter if it is a file or a directory).

Extension

nametype
extensionstring
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.

Full Name

nametype
fullnamestring
Name of a file including its extension or simply name of a directory.

Height

nametype
heightnumber
Get height of this file using FFmpeg. Works only for images and videos. Improper elements have NaN height.

Hidden

nametype
hiddenbool
Attribute hidden of a file or a directory.

Is Directory

nametype
isdirectorybool
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.

Is File

nametype
isfilebool
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.

Is Image

nametype
isimagebool
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.

Is Video

nametype
isvideobool
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.

Lifetime

nametype
lifetimeperiod
Difference between current moment and creation time or last modification time of an element (depending on which one is older).

Modification

nametype
modificationtime
Last modification time of a file or a directory.

Name

nametype
namestring
Name of a file without its extension. If current element is a directory, then returned is simply its name as they never have extensions.

Path

nametype
pathstring
Absolute path to current element.

Parent

nametype
parentstring
Parent directory of path to current element. This either an absolute path or an empty string (wrong value).

Read-only

nametype
readonlybool
Attribute read-only of a file or a directory.

Size

nametype
sizenumber
Size of a file or a directory is expressed as a number of bytes. Nonexistent elements have NaN size.

Width

nametype
widthnumber

Get width of this file using FFmpeg. Works only for images and videos. Improper elements have NaN width.