Returns the file name of filePath
up to (but not including) the
first '.' character.
Returns a canonicalized filePath
, i.e. an absolute path without
symbolic links or redundant "." or ".." elements. On Windows,
drive substitutions are also resolved.
It is recommended to use canonicalPath
in only those cases where
canonical paths are really necessary. In most cases, cleanPath
should be enough.
Returns filePath
without redundant separators and with resolved
occurrences of .
and ..
components. For
instance, /usr/local//../bin/
becomes /usr/bin
.
Returns the file name of filePath
up to (but not including) the
last .
character.
Returns the file suffix of filePath
from (but not including) the
last .
character.
Returns the last component of filePath
, that is, everything after
the last /
character.
On Windows, returns filePath
with all \
characters replaced
by /
. On other operating systems, it returns the input
unmodified.
Returns true if filePath
is an absolute path and false
if it is a relative one.
Concatenates the given paths using the /
character.
Returns the part of filePath
that is not the file name, that is,
everything up to (but not including) the last /
character. If
filePath
is just a file name, then .
is returned. If
filePath
ends with a /
character, then the file name is
assumed to be empty for the purpose of the above definition.
Returns the path to filePath
relative to the directory dirPath
.
If necessary, ..
components are inserted.
Returns the file suffix of filePath
from (but not including) the
first .
character.
On Windows, returns filePath
with all /
characters replaced by
\
. On other operating systems, it returns the input unmodified.
Generated using TypeDoc
Offers various operations on file paths, such as turning absolute paths into relative ones, splitting a path into its components, and so on.