ReadWrite
This is the most comprehensive interface, offering complete filesystem operations using Path objects including reading, writing, and path manipulation.
Functions
Copies a file or directory from source to target. If the source is a directory, all its contents are copied recursively. Parent directories of the target will be created if they don't exist. The operation is performed with Dispatchers.IO context.
Creates a new file or directory denoted by the path using the specified type. It is created with Dispatchers.IO context. Parent directories will be created if they don't exist.
Creates a directory at the specified path. Parent directories will be created automatically if they don't exist.
Creates a file at the specified path. Parent directories will be created automatically if they don't exist.
Deletes a file or directory denoted by the path. If the item is a directory, it will be deleted recursively with all its contents. The operation is performed with Dispatchers.IO context.
Filters the current read-only file system implementation such that only paths that are accepted by filter are visible and accessible.
Filters the current read-write file system implementation such that only paths that are accepted by filter are visible and accessible.
Creates a Path object from an absolute path string. This method works with the path structure and doesn't check if the path actually exists in the filesystem.
Detects the type of content stored in a file using a path.
Creates a Source for reading from a file at the specified path. The returned Source is buffered.
Retrieves metadata for a file or directory using a path.
Moves a file or directory from source to target. If the source is a directory, all its contents are moved recursively. Parent directories of the target will be created if they don't exist. The operation is performed with Dispatchers.IO context.
Creates a Sink for writing to a file. If the file doesn't exist, it will be created. If the parent directories don't exist, they will be created. The returned Sink is buffered. It is created with Dispatchers.IO context.
Converts a path to its absolute path string representation. This method works with the path structure and doesn't check if the path actually exists in the filesystem.
Writes content to a file. If the file doesn't exist, it will be created. If the file exists, its content will be overwritten. Parent directories will be created if they don't exist. The operation is performed with Dispatchers.IO context.