#file-copy #copy #recursion #file #walk-dir

build dircpy

Copy directories recursively with flexible options

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

Download history 13714/week @ 2024-07-25 15489/week @ 2024-08-01 24945/week @ 2024-08-08 14386/week @ 2024-08-15 13725/week @ 2024-08-22 13999/week @ 2024-08-29 13872/week @ 2024-09-05 12913/week @ 2024-09-12 11330/week @ 2024-09-19 15235/week @ 2024-09-26 13781/week @ 2024-10-03 15479/week @ 2024-10-10 15643/week @ 2024-10-17 15031/week @ 2024-10-24 14050/week @ 2024-10-31 13683/week @ 2024-11-07

61,457 downloads per month
Used in 336 crates (14 directly)

MIT license

23KB
465 lines

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();
  

Dependencies

~1.4–9MB
~66K SLoC