fs-tools 0.1.0
File system helpers: walk directories, copy a directory tree, read and write text, and atomic writes
Install
cargo add fs-tools --registry rupm
In Ruststudio: Packages, search for fs-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# fs-tools
File system helpers: walk directories, copy a directory tree, read and write text, and atomic writes
Add it with `rupm add fs-tools` (or `cargo add fs-tools --registry rupm`).
```rust
use fs_tools::{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
}
```