#temporary-files #file #folders #fs-file #folder #io #automatic

dev temporary

The package provides means of managing temporary files and folders

19 releases

0.7.0 Apr 23, 2023
0.6.4 Feb 20, 2022
0.6.3 Nov 1, 2016
0.6.2 Jul 17, 2016
0.0.4 Mar 22, 2015

#800 in Filesystem

Download history 72/week @ 2024-08-04 73/week @ 2024-08-11 61/week @ 2024-08-18 86/week @ 2024-08-25 86/week @ 2024-09-01 59/week @ 2024-09-08 42/week @ 2024-09-15 81/week @ 2024-09-22 76/week @ 2024-09-29 40/week @ 2024-10-06 43/week @ 2024-10-13 42/week @ 2024-10-20 49/week @ 2024-10-27 43/week @ 2024-11-03 35/week @ 2024-11-10 45/week @ 2024-11-17

176 downloads per month
Used in 14 crates

Apache-2.0/MIT

8KB
124 lines

Temporary Package Documentation Build

The package provides means of managing temporary files and folders.

Example

use std::fs::File;
use std::io::Write;
use temporary::Folder;

// Create a temporary folder.
let folder = Folder::new("foo").unwrap();

// Do some work.
let mut file = File::create(folder.join("foo.txt")).unwrap();
file.write_all(b"Hi there!").unwrap();

// The folder and its content get removed automatically.

Acknowledgments

The package was originally based on std::io::TempDir by Rust’s developers, which was later moved to a separate crate, tempdir.

Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.

Dependencies

~7KB