temporary

Crates.iotemporary
lib.rstemporary
version0.7.0
sourcesrc
created_at2015-02-21 19:35:59.401788
updated_at2023-04-23 14:21:43.805577
descriptionThe package provides means of managing temporary files and folders.
homepagehttps://github.com/stainless-steel/temporary
repositoryhttps://github.com/stainless-steel/temporary
max_upload_size
id1443
size9,954
Owners (github:buoyantio:owners)

documentation

https://docs.rs/temporary

README

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.

Commit count: 54

cargo fmt