portable-network-archive 0.32.2

Portable-Network-Archive cli
Documentation
1
2
3
4
5
6
7
8
9
use crate::utils::fs::get_flags;
use std::{io, path::Path};

/// Check if the file has the nodump flag set.
/// This is used to skip files during backup operations.
pub(crate) fn is_nodump(path: &Path) -> io::Result<bool> {
    let flags = get_flags(path)?;
    Ok(flags.iter().any(|f| f == "nodump"))
}