Crate ailloli_ui_fs_local

Source
Expand description

Local filesystem provider and native non-recursive watcher for ailloli_ui_fs.

LocalFileProvider performs synchronous host filesystem calls. The exported source factory creates the worker-owned watcher used by ailloli_ui_fs_runtime; neither layer adds sandboxing or path authorization.

§Examples

use ailloli_ui_fs::{FileProvider, FileUri};
use ailloli_ui_fs_local::LocalFileProvider;
let provider = LocalFileProvider::new();
let remote = FileUri::parse("sftp://host/file.txt")?;
assert!(provider.read_file(&remote).is_err());

Structs§

LocalFileProvider
Stateless synchronous provider for file: URIs on the host filesystem.
LocalFileTreeSource
Worker-owned local source with non-recursive native directory watches.
LocalFileTreeSourceFactory
Thread-safe factory configuring each worker-owned local source.

Constants§

DEFAULT_LOCAL_FILE_TREE_MAX_WATCHERS
Default maximum number of simultaneously watched local directories: 1,024.