A cross-platform library to recursively copy directories, with some convenience added.
use dircpy::*;
// Most basic example:
copy_dir("src", "dest");
// 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();