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
//! File actions module.
//!
//! This module provides functionality for:
//! - Safe deletion via trash crate
//! - Permanent deletion (with confirmation)
//! - File preview (text, binary, image)
//!
//! # Deletion
//!
//! The delete module provides safe file deletion with:
//! - Move to system trash (default, recoverable)
//! - Permanent deletion (requires explicit configuration)
//! - Batch operations with progress reporting
//! - TOCTOU verification to detect modified files
//!
//! ```no_run
//! use rustdupe::actions::delete::{delete_to_trash, DeleteConfig};
//! use std::path::PathBuf;
//!
//! let path = PathBuf::from("/path/to/duplicate.txt");
//! let result = delete_to_trash(&path);
//! ```
//!
//! # Preview
//!
//! The preview module supports file content preview:
//! - Text files: first 50 lines
//! - Binary files: hex dump of first 256 bytes
//! - Image files: metadata (format, dimensions, size)
//!
//! ```no_run
//! use rustdupe::actions::preview::preview_file_simple;
//! use std::path::Path;
//!
//! let content = preview_file_simple(Path::new("example.txt"));
//! println!("{}", content);
//! ```
// Re-export commonly used types
pub use ;
pub use ;