#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 14595/week @ 2024-08-16 13632/week @ 2024-08-23 13768/week @ 2024-08-30 13742/week @ 2024-09-06 11875/week @ 2024-09-13 12541/week @ 2024-09-20 14594/week @ 2024-09-27 15001/week @ 2024-10-04 15213/week @ 2024-10-11 15943/week @ 2024-10-18 14711/week @ 2024-10-25 14080/week @ 2024-11-01 13525/week @ 2024-11-08 15020/week @ 2024-11-15 13586/week @ 2024-11-22 14114/week @ 2024-11-29

59,287 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–8MB
~63K SLoC