Checks if a file is executable.
The path to the file.
true
if the file is executable, otherwise false
.
Checks if a file is readable.
The path to the file.
true
if the file is readable, otherwise false
.
Checks if a file is writable.
The path to the file.
true
if the file is writable, otherwise false
.
Copies a file or directory to a new location.
The source path.
The destination path.
Whether to overwrite the destination if it already exists.
true
if the copy was successful, otherwise false
.
Creates a new file.
The path to the file.
true
if the file was created successfully, otherwise false
.
Deletes a file or directory.
The path to the file or directory.
true
if the deletion was successful, otherwise false
.
Checks if a file or directory exists.
The path to check.
true
if the file or directory exists, otherwise false
.
Checks if a path is a directory.
The path to check.
true
if the path is a directory, otherwise false
.
Checks if a path is a file.
The path to check.
true
if the path is a file, otherwise false
.
Checks if a file is hidden.
The path to the file.
true
if the file is hidden, otherwise false
.
Checks if a path is a symbolic link.
The path to check.
true
if the path is a symbolic link, otherwise false
.
Lists the contents of a directory.
The path to the directory.
Optional
delimiter: stringAn optional delimiter for separating entries.
A string containing the directory contents, or null
if the directory cannot be read.
Creates a directory.
The path to the directory.
true
if the directory was created successfully, otherwise false
.
Creates a directory and any necessary parent directories.
The path to the directory.
true
if the directories were created successfully, otherwise false
.
Reads the content of a file as a string.
The path to the file.
The file content as a string, or null
if the file cannot be read.
Reads the content of a file as a Base64-encoded string.
The path to the file.
The Base64-encoded content, or null
if the file cannot be read.
Renames a file or directory.
The current path of the file or directory.
The new path for the file or directory.
true
if the rename was successful, otherwise false
.
Retrieves the size of a file or directory.
The path to the file or directory.
Optional
recursive: booleanWhether to include the size of subdirectories (if applicable).
The size in bytes.
Retrieves metadata about a file or directory.
The path to the file or directory.
Optional
total: booleanWhether to include additional metadata (if applicable).
A numeric representation of the metadata.
Writes a string to a file.
The path to the file.
The string data to write.
Writes binary data to a file.
The path to the file.
An array of bytes to write.
Interface representing file operations and metadata retrieval.