nova.path global object is used to manipulate file system paths.
Returns the last component (the filename) of the specified path, including any extension.
Returns the directory parent of the path.
Returns the file extension of the path. If the path has no file extension, this method returns an empty string.
Splits the path into an array with two components: the path + filename without the extension, and the file extension.
Expands any reference to the user’s home directory using the
~ component to contain the full home directory path.
true if the path is an absolute path.
Combines one or more components into one path using the platform’s proper path components.
Attempts to normalize a path by expanding symbolic links and other ambiguous components.
Calculates and returns a relative path between two other paths, inserting
.. components as necessary.
Added in Nova 8.
Splits the path into an array of path components (split on the ‘/’ separator), but including the leading ‘/’ root for absolute paths.