1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! agentvfs - Virtual filesystem CLI backed by embedded databases.
//!
//! This library provides a virtual filesystem abstraction that stores files
//! in an embedded database (SQLite by default). It supports multiple independent
//! vaults, content-addressable storage with deduplication, and familiar
//! filesystem operations.
//!
//! # Example
//!
//! ```no_run
//! use std::sync::Arc;
//! use agentvfs::storage::{BackendType, VaultBackend};
//! use agentvfs::fs::FileSystem;
//!
//! // Open a storage backend
//! let backend = Arc::new(
//! VaultBackend::open(std::path::Path::new("my.avfs"), BackendType::Sqlite).unwrap()
//! );
//!
//! // Create filesystem
//! let fs = FileSystem::new(backend);
//!
//! // Create directories and files
//! fs.create_dir("/docs").unwrap();
//! fs.write_file("/docs/hello.txt", b"Hello, World!").unwrap();
//!
//! // Read file contents
//! let content = fs.read_file("/docs/hello.txt").unwrap();
//! assert_eq!(content, b"Hello, World!");
//! ```
pub use ;