rembackup/src/indexchanges.rs
2023-09-13 01:16:47 +02:00

12 lines
281 B
Rust
Executable File

use std::path::PathBuf;
use crate::indexfile::IndexFile;
#[derive(Debug)]
pub enum IndexChange {
/// Ensure a directory with this path exists (at least if all its parent directories exist).
AddDir(PathBuf),
/// Add or update a file
AddFile(PathBuf, IndexFile),
}