pub fn scan_filesystem(
name: &str,
fs_config: &FilesystemConnectorConfig,
) -> Result<Vec<SourceItem>>Expand description
Scan a local directory and produce SourceItems.
Walks the configured root directory, applies include/exclude globs,
reads each matching file, and returns a sorted list of SourceItems.
§Arguments
name— the instance name (e.g."docs"). Used as part of the source identifier:"filesystem:<name>".fs_config— the filesystem connector configuration for this instance.
§Errors
Returns an error if:
- The root directory does not exist
- A glob pattern is invalid
- A directory entry cannot be read