dircpy

Crates.iodircpy
lib.rsdircpy
version0.3.19
sourcesrc
created_at2020-08-26 20:31:45.348378
updated_at2024-08-01 17:01:59.975498
descriptionCopy directories recursively with flexible options.
homepage
repositoryhttps://github.com/woelper/dircpy/
max_upload_size
id281089
size28,266
Johann Woelper (woelper)

documentation

README

dircpy

Crates.io license Docs Status

Crates.io

Test Linux Test Windows

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();
  
Commit count: 77

cargo fmt