#copy #recursion #file

build dircpy

Copy directories recursively with flexible options

20 releases

0.3.16 Feb 17, 2024
0.3.15 Jul 23, 2023
0.3.14 Jan 4, 2023
0.3.13 Aug 30, 2022
0.3.4 Aug 30, 2020

#67 in Filesystem

Download history 10894/week @ 2024-02-07 11026/week @ 2024-02-14 11239/week @ 2024-02-21 11413/week @ 2024-02-28 10920/week @ 2024-03-06 14205/week @ 2024-03-13 14306/week @ 2024-03-20 16002/week @ 2024-03-27 15036/week @ 2024-04-03 15267/week @ 2024-04-10 14367/week @ 2024-04-17 15487/week @ 2024-04-24 13945/week @ 2024-05-01 15526/week @ 2024-05-08 14552/week @ 2024-05-15 10066/week @ 2024-05-22

57,026 downloads per month
Used in 326 crates (12 directly)

MIT license

21KB
428 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–8.5MB
~69K SLoC