Expand description
Filesystem connector.
Walks a local directory, applies glob include/exclude patterns, and produces
SourceItems with filesystem metadata (modification time, file path).
§Configuration
[connectors.filesystem.docs]
root = "./docs"
include_globs = ["**/*.md", "**/*.txt"]
exclude_globs = ["**/drafts/**"]
follow_symlinks = false§Default Excludes
The following directories are always excluded regardless of configuration:
**/.git/****/target/****/node_modules/**
§Output
Each file becomes a SourceItem with:
source:"filesystem:<name>"(e.g."filesystem:docs")source_id: relative path from root (e.g."guides/deploy.md")source_url:file://URIupdated_at: filesystem modification timebody: file contents as UTF-8
Structs§
- Filesystem
Connector - A filesystem connector instance that implements the
Connectortrait.
Constants§
- BINARY_
EXTENSIONS 🔒 - Binary file extensions that are read as bytes and extracted (spec §2.2).
Functions§
- binary_
content_ 🔒type - Extension to MIME type per spec §4.1.
- build_
globset 🔒 - Build a [
GlobSet] from a list of glob pattern strings. - file_
to_ 🔒source_ item - Convert a single file to a
SourceItem, orNoneif the file should be skipped (spec §2.2). - scan_
filesystem - Scan a local directory and produce
SourceItems.