Checks if the application can execute the file of this instance.
true if executable, false otherwise.
Checks if the application can read the file of this instance.
true if readable, false otherwise.
Checks if the application can write to the file of this instance.
true if writable, false otherwise.
Changes the permissions of the file or directory (e.g., using octal notation).
The permission mode.
true on success, false otherwise.
Changes the owner and group of the file or directory.
The user ID.
The group ID.
true on success, false otherwise.
Copies the file of this instance to a new destination.
The destination file path.
Creates a new, empty file at the path of this instance.
true if the file was created, false if it already exists.
Checks if the file or directory of this instance exists.
true if it exists, false otherwise.
Checks if this instance points to a block device.
true if it is a block device, false otherwise.
Checks if this instance points to a character device.
true if it is a character device, false otherwise.
Checks if this instance represents a directory.
true if it is a directory, false otherwise.
Checks if this instance represents a regular file.
true if it is a file, false otherwise.
Checks if the file or directory of this instance is hidden.
true if it is hidden, false otherwise.
Checks if this instance points to a named pipe (FIFO).
true if it is a named pipe, false otherwise.
Checks if this instance points to a socket.
true if it is a socket, false otherwise.
Checks if this instance represents a symbolic link.
true if it is a symbolic link, false otherwise.
Lists the files and directories if this instance represents a directory.
A string containing the names of the items in the directory,
or null if this instance is not a directory.
Creates a directory at the path of this instance, including parent directories.
true on success, false otherwise.
Creates a directory at the path of this instance.
true on success, false otherwise.
Reads the entire content of the file associated with this instance.
The content of the file as a UTF-8 string, or null if reading fails.
Renames or moves the file or directory of this instance.
The new path for the file or directory.
true on success, false otherwise.
Removes the file or directory of this instance.
true on success, false otherwise.
Returns the size of the file of this instance in bytes.
The size in bytes, or null if it's not a file.
Retrieves status information about the file of this instance.
The last modification time (e.g., in milliseconds since epoch),
or null on failure.
Writes a string to the file associated with this instance.
The content to write.
Returns null if the operation fails.
Defines an interface representing an instance of a file or directory. The methods operate directly on the path associated with this instance. All operations are synchronous and will block execution until they complete.