1 unstable release
0.3.5 | Mar 8, 2021 |
---|
#1728 in Filesystem
Used in 2 crates
11KB
175 lines
dircpy
Runs on the stable channel
A 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();
Dependencies
~0.1–6.5MB
~40K SLoC