#temporary-files #folders #file #fs-file #io #folder #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

#529 in Filesystem

Download history 43/week @ 2023-12-11 53/week @ 2023-12-18 41/week @ 2023-12-25 14/week @ 2024-01-01 47/week @ 2024-01-08 41/week @ 2024-01-15 77/week @ 2024-01-22 20/week @ 2024-01-29 35/week @ 2024-02-05 65/week @ 2024-02-12 78/week @ 2024-02-19 135/week @ 2024-02-26 98/week @ 2024-03-04 96/week @ 2024-03-11 88/week @ 2024-03-18 96/week @ 2024-03-25

400 downloads per month
Used in 15 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