//! Marks a given path as excluded from backups.
//!
//! Currently implemented only for Time Machine on macOS.
//!
//! Applications that create caches and temporary files in non-standard system
//! locations should exclude these from backups to avoid unneccessary I/O churn
//! and backup bloat.
use crateError;
use Path;
/// Marks given path as excluded from backups
///
/// On macOS excluded paths are marked using xattr, so if the file/dir is deleted,
/// the mark will be gone as well.