Backend that reads and writes files directly from the filesystem.
Files are accessed using their actual filesystem paths. Relative paths are resolved relative to the current working directory. Content is read/written as plain text, and metadata (timestamps) are derived from filesystem stats.
class FilesystemBackendDelete a file or directory from the filesystem.
Files are unlinked. Directories are removed recursively along with all of their contents. Symlinks are removed as links and never followed into their targets.
Download multiple files from the filesystem.
Edit a file by replacing string occurrences. Returns EditResult. External storage sets filesUpdate=null.
Structured glob matching returning FileInfo objects.
Search for a literal text pattern in files.
Uses ripgrep if available, falling back to substring search.
List files and directories in the specified directory (non-recursive).
Read file content with line numbers.
Read file content as raw FileData.
Upload multiple files to the filesystem.
Write content to a file, creating it or overwriting it if it already exists. Returns WriteResult. External storage sets filesUpdate=null.