#copy #recursive #filesystem #file

dircpy

Copy directories recursively with flexible options

18 releases

0.3.14 Jan 4, 2023
0.3.13 Aug 30, 2022
0.3.12 Jul 27, 2022
0.3.8 Oct 2, 2021
0.3.4 Aug 30, 2020

#90 in Filesystem

Download history 4069/week @ 2022-10-11 3271/week @ 2022-10-18 3634/week @ 2022-10-25 4456/week @ 2022-11-01 4177/week @ 2022-11-08 4046/week @ 2022-11-15 4986/week @ 2022-11-22 5344/week @ 2022-11-29 4795/week @ 2022-12-06 4227/week @ 2022-12-13 3185/week @ 2022-12-20 2464/week @ 2022-12-27 4420/week @ 2023-01-03 5009/week @ 2023-01-10 4806/week @ 2023-01-17 4085/week @ 2023-01-24

18,761 downloads per month
Used in 29 crates (4 directly)

MIT license

20KB
410 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.5MB
~32K SLoC