rs-fs-walk 0.1.0
File system helpers: walk directories, copy a directory tree, read and write text, and atomic writes
Install
cargo add rs-fs-walk --registry rupm
In Ruststudio: Packages, search for rs-fs-walk, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.
Versions
- 0.1.0 2026-11-23
README
# rs-fs-walk
File system helpers: walk directories, copy a directory tree, read and write text, and atomic writes
Add it with `rupm add rs-fs-walk` (or `cargo add rs-fs-walk --registry rupm`).
```rust
use rs_fs_walk::{atomic_write, copy_dir, walk_files, write_string};
write_string("out/notes/a.txt", "hello")?; // creates the parent directories
atomic_write("out/config.json", b"{}")?; // never leaves a half-written file behind
let copied = copy_dir("out", "backup")?; // number of files copied
for file in walk_files("backup")? {
println!("{}", file.display()); // sorted, files only
}
```