Filesystem¶
-
isblockdev(path) → Bool¶ Returns
trueifpathis a block device,falseotherwise.
-
ischardev(path) → Bool¶ Returns
trueifpathis a character device,falseotherwise.
-
isdir(path) → Bool¶ Returns
trueifpathis a directory,falseotherwise.
-
isexecutable(path) → Bool¶ Returns
trueif the current user has permission to executepath,falseotherwise.
-
isfifo(path) → Bool¶ Returns
trueifpathis a FIFO,falseotherwise.
-
isfile(path) → Bool¶ Returns
trueifpathis a regular file,falseotherwise.
-
islink(path) → Bool¶ Returns
trueifpathis a symbolic link,falseotherwise.
-
ispath(path) → Bool¶ Returns
trueifpathis a valid filesystem path,falseotherwise.
-
isreadable(path) → Bool¶ Returns
trueif the current user has permission to readpath,falseotherwise.
-
issetgid(path) → Bool¶ Returns
trueifpathhas the setgid flag set,falseotherwise.
-
issetuid(path) → Bool¶ Returns
trueifpathhas the setuid flag set,falseotherwise.
-
issocket(path) → Bool¶ Returns
trueifpathis a socket,falseotherwise.
-
issticky(path) → Bool¶ Returns
trueifpathhas the sticky bit set,falseotherwise.
-
iswriteable(path) → Bool¶ Returns
trueif the current user has permission to write topath,falseotherwise.
-
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), wherepathis the path of a new temporary file andiois an open file object for this path.
-
mktempdir()¶ Create a temporary directory and return its path.