Package-level declarations

Types

Link copied to clipboard

Interface representing a provider for managing documents and their contents. It allows retrieval of documents, manipulation of text, and extraction of content fragments.

Link copied to clipboard
data class FileMetadata(val type: FileMetadata.FileType, val hidden: Boolean)

Represents metadata associated with a file or directory.

Link copied to clipboard

Provides ReadOnly and ReadWrite interfaces for interacting with a filesystem through file operations and content reading/writing.

Link copied to clipboard

An implementation of the DocumentProvider interface for handling documents represented as Path objects. This object provides functionality to read and write text from files, allowing for document editing and text transformation while normalizing line separators.

Link copied to clipboard

Provides access to the JVM-specific file system functionality. This object includes implementations for operations like serialization of Path objects, file selection, read, write, and combined read-write operations.

Functions

Link copied to clipboard

Creates a directory at the specified path. Parent directories will be created automatically if they don't exist.

Link copied to clipboard

Creates a file at the specified path. Parent directories will be created automatically if they don't exist.

Link copied to clipboard

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.

Link copied to clipboard

Reads the entire content of a file as a string.

Link copied to clipboard
suspend fun <Path> FileSystemProvider.ReadWrite<Path>.writeText(path: Path, content: String)

Writes a string to a file, replacing any existing content.