Skip to content

asido/temporary

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Temporary files and folders

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%