Crate dircpy

source ·
Expand description

Recursively copy a directory from a to b.

use dircpy::*;

// Most basic example:
copy_dir("src", "dest").unwrap();

// Simple builder example:
CopyBuilder::new("src", "dest")
.run()
.unwrap();

// Copy recursively, only including certain files:
CopyBuilder::new("src", "dest")
.overwrite_if_newer(true)
.overwrite_if_size_differs(true)
.with_include_filter(".txt")
.with_include_filter(".csv")
.run()
.unwrap();

Structs§

Functions§

  • Copy a directory from source to dest, creating dest, with minimal options.
  • Copy a directory from source to dest, creating dest, with all options.