PathView

Members

Aliases

Stamps
alias Stamps = FS.Stamps
Undocumented in source.

Functions

accessed
Time accessed()

Returns the time of the last access. Accurate to whatever the OS supports.

cString
mstring cString()

Return the complete text of this filepath.

created
Time created()

Returns the time of file creation. Accurate to whatever the OS supports.

exists
bool exists()

Does this path currently exist?

ext
cstring ext()

Ext is the tail of the filename, rightward of the rightmost '.' separator e.g. path "foo.bar" has ext "bar". Note that patterns of adjacent separators are treated specially; for example, ".." will wind up with no ext at all.

file
cstring file()

Return the name + suffix combination.

fileSize
ulong fileSize()

Return the file length (in bytes).

folder
cstring folder()

Return the file path. Paths may start and end with a "/". The root path is "/" and an unspecified path is returned as an empty string. Directory paths may be split such that the directory name is placed into the 'name' member; directory paths are treated no differently than file paths.

isAbsolute
bool isAbsolute()

Returns true if this FilePath is *not* relative to the current working directory.

isChild
bool isChild()

Returns true if this FilePath has a parent.

isEmpty
bool isEmpty()

Returns true if this FilePath is empty.

isFolder
bool isFolder()

Is this file actually a folder/directory?

isWritable
bool isWritable()

Is this file writable?

modified
Time modified()

Returns the time of the last modification. Accurate to whatever the OS supports.

name
cstring name()

Return the name of this file, or directory, excluding a suffix.

path
cstring path()

Return the root + folder combination.

root
cstring root()

Return the root of this path. Roots are constructs such as "C:".

suffix
cstring suffix()

Suffix is like ext, but includes the separator e.g. path "foo.bar" has suffix ".bar".

timeStamps
Stamps timeStamps()

Return timestamp information.

toString
istring toString()

Return the complete text of this filepath.

Meta