https://github.com/woelper/dircpy
A library to recursively copy directories, with some convenience added.
https://github.com/woelper/dircpy
copy directory recursive rust rust-library
Last synced: about 1 month ago
JSON representation
A library to recursively copy directories, with some convenience added.
- Host: GitHub
- URL: https://github.com/woelper/dircpy
- Owner: woelper
- License: mit
- Created: 2020-08-24T21:54:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-08T07:07:47.000Z (over 1 year ago)
- Last Synced: 2025-11-27T14:52:11.545Z (4 months ago)
- Topics: copy, directory, recursive, rust, rust-library
- Language: Rust
- Homepage:
- Size: 64.5 KB
- Stars: 27
- Watchers: 1
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# dircpy
[](https://crates.io/crates/dircpy)
[](https://github.com/woelper/dircpy/blob/master/LICENSE)
[](https://docs.rs/dircpy)

[](https://github.com/woelper/dircpy/actions/workflows/test_linux.yml)
[](https://github.com/woelper/dircpy/actions/workflows/test_windows.yml)
A cross-platform library to recursively copy directories, with some convenience added.
```rust
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();
```