Expand description
File management system for Agent Diva
Provides content-addressed storage with deduplication and reference counting. Files are stored by their SHA256 hash, enabling automatic deduplication. Reference counting ensures files are only deleted when no longer referenced.
§模块组织
Re-exports§
pub use backend::BackendStats;pub use backend::LocalStorageBackend;pub use backend::StorageBackend;pub use channel::ChannelFileInfo;pub use channel::ChannelManager;pub use channel::ChannelStats;pub use config::default_data_dir;pub use config::default_data_dir_or_fallback;pub use config::CleanupConfig;pub use config::CleanupStrategy;pub use config::FileConfig;pub use handle::FileHandle;pub use hooks::CleanupHook;pub use hooks::HookAction;pub use hooks::HookCounts;pub use hooks::HookRegistry;pub use hooks::MetadataHook;pub use hooks::ReadHook;pub use hooks::StorageHook;pub use index::FileIndex;pub use index::IndexStats;pub use index::SqliteIndex;pub use manager::FileManager;pub use storage::FileStorage;pub use storage::StorageStats;
Modules§
- backend
- Storage backend trait and implementations
- channel
- 频道文件管理模块 - Channel File Management Module
- config
- Configuration for file management system
- handle
- File handle with reference counting
- hooks
- Hook System - 钩子系统的全面解析
- index
- SQLite-based file index
- manager
- FileManager - Core file management system
- storage
- Storage backend for file management
Enums§
- File
Error - Errors that can occur in the file management system