23 releases
0.3.19 | Aug 1, 2024 |
---|---|
0.3.18 | Jul 24, 2024 |
0.3.16 | Feb 17, 2024 |
0.3.15 | Jul 23, 2023 |
0.3.4 | Aug 30, 2020 |
#78 in Filesystem
59,287 downloads per month
Used in 336 crates
(14 directly)
23KB
465 lines
dircpy
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();
Dependencies
~1.4–8MB
~63K SLoC