cargo_util::paths

Function exclude_from_backups

Source
fn exclude_from_backups(path: &Path)
Expand description

Marks the directory as excluded from archives/backups.

This is recommended to prevent derived/temporary files from bloating backups. There are two mechanisms used to achieve this right now:

  • A dedicated resource property excluding from Time Machine backups on macOS
  • CACHEDIR.TAG files supported by various tools in a platform-independent way