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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! # Stowr Core
//!
//! A Rust library for file management with compression, storage, and indexing capabilities.
//!
//! ## Quick Start
//!
//! ```rust
//! use stowr_core::{Config, StorageManager, create_index};
//! use std::path::Path;
//!
//! # fn main() -> anyhow::Result<()> {
//! let config = Config::default();
//! let index = create_index(&config)?;
//! let mut storage = StorageManager::new(config, index);
//!
//! // Store a file
//! // storage.store_file(Path::new("example.txt"), false)?;
//!
//! // List files
//! let files = storage.list_files()?;
//! println!("Stored {} files", files.len());
//! # Ok(())
//! # }
//! ```
//!
//! ## Features
//!
//! - File compression using gzip
//! - Dual indexing system (JSON/SQLite)
//! - Batch operations with glob patterns
//! - Multi-threaded processing
//! - Configurable compression levels
//!
//! ## Integration
//!
//! This library can be easily integrated into:
//! - Command-line applications
//! - Desktop applications (e.g., Tauri)
//! - Web services
//! - System utilities
pub use ;
pub use StorageManager;
pub use ;
pub use ;
pub use ;
// Re-export commonly used types
pub use Result;
pub use ;