Registry / utility / fs-extra

fs-extra

JSON →
library1.3.0rscratesunverified

Expanding std::fs and std::io. Recursively copy folders with information about process and much more.

# Cargo.toml [dependencies] fs_extra = "1.3.0"
INSTALL
IMPORT
SIG · FS-EXTRA
F
fs-extra
utilityrustv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

copy
use fs_extra::dir::copy;

Recursively copy a directory with progress information.

use fs_extra::dir::copy; use fs_extra::dir::CopyOptions; fn main() { let options = CopyOptions::new(); copy("source_dir", "dest_dir", &options).unwrap(); println!("Directory copied successfully!"); }
Debug
Known issues
gotchaThe `copy` function overwrites files by default; use `CopyOptions` to control behavior.
fix
Set `overwrite` to `false` in `CopyOptions` to avoid accidental overwrites.
affects: >=1.0.0
Upgrade
Version history
1.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fs-extra — cargo add fs-extra · libregistry