Skip to main content

Crate cleaner_core

Crate cleaner_core 

Source
Expand description

Cleaner core library: high-performance filesystem scanning, directory tree sizing, pattern matching, and concurrent artifact deletion engine.

Re-exports§

pub use config::Config;
pub use deleter::Deleter;
pub use disk_usage::get_disk_usage;
pub use patterns::PatternMatcher;
pub use protected::is_protected_for_root;
pub use protected::protected_paths_for_root;
pub use scanner::ScanResult;
pub use scanner::ScanSummary;
pub use scanner::Scanner;
pub use stats::Stats;
pub use tree::DirEntry;
pub use tree::DirTree;
pub use tree::ScanProgress;

Modules§

config
Configuration loading with priority: env vars > config file > defaults
deleter
Parallel deletion engine Uses rayon for parallel file/directory removal with streaming processing
disk_usage
Platform disk free/total helpers.
fastwalk
patterns
Pattern matching for temporary files and folders
pool
protected
Protected path helpers shared by scanner and analyze tree.
scanner
Parallel directory scanner using jwalk Configured for maximum performance with rayon thread pool
stats
Atomic statistics tracking for multi-threaded operations
tree
Directory tree with MAXIMUM PERFORMANCE single-pass scan Single WalkDir, no duplicate syscalls, O(n) everywhere