Filesystem¶
- isblockdev(path) → Bool¶
Returns true if path is a block device, false otherwise.
- ischardev(path) → Bool¶
Returns true if path is a character device, false otherwise.
- isdir(path) → Bool¶
Returns true if path is a directory, false otherwise.
- isexecutable(path) → Bool¶
Returns true if the current user has permission to execute path, false otherwise.
- isfifo(path) → Bool¶
Returns true if path is a FIFO, false otherwise.
- isfile(path) → Bool¶
Returns true if path is a regular file, false otherwise.
- islink(path) → Bool¶
Returns true if path is a symbolic link, false otherwise.
- ispath(path) → Bool¶
Returns true if path is a valid filesystem path, false otherwise.
- isreadable(path) → Bool¶
Returns true if the current user has permission to read path, false otherwise.
- issetgid(path) → Bool¶
Returns true if path has the setgid flag set, false otherwise.
- issetuid(path) → Bool¶
Returns true if path has the setuid flag set, false otherwise.
- issocket(path) → Bool¶
Returns true if path is a socket, false otherwise.
- issticky(path) → Bool¶
Returns true if path has the sticky bit set, false otherwise.
- iswriteable(path) → Bool¶
Returns true if the current user has permission to write to path, false otherwise.
- dirname(path::String) → String¶
Get the directory part of a path.
- basename(path::String) → String¶
Get the file name part of a path.
- isabspath(path::String) → Bool¶
Determines whether a path is absolute (begins at the root directory).
- joinpath(parts...) → String¶
Join path components into a full path. If some argument is an absolute path, then prior components are dropped.
- abspath(path::String) → String¶
Convert a path to an absolute path by adding the current directory if necessary.
- tempname()¶
Generate a unique temporary filename.
- tempdir()¶
Obtain the path of a temporary directory.
- mktemp()¶
Returns (path, io), where path is the path of a new temporary file and io is an open file object for this path.
- mktempdir()¶
Create a temporary directory and return its path.