temporary 0.5.0

The package provides means of managing temporary files and directories.
Documentation

Temporary Version Status

The package provides means of managing temporary files and directories.

Documentation

Example

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

// Create a temporary directory.
let directory = Directory::new("foo").unwrap();

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

// The directory 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

  1. Fork the project.
  2. Implement your idea.
  3. Open a pull request.