Crates.io | dircpy-stable |
lib.rs | dircpy-stable |
version | 0.3.5 |
source | src |
created_at | 2021-03-08 00:28:39.311205 |
updated_at | 2021-03-08 00:28:39.311205 |
description | Copy directories recursively with flexible options. Runs on the stable channel. |
homepage | |
repository | https://github.com/lamka02sk/dircpy/ |
max_upload_size | |
id | 365433 |
size | 12,334 |
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();