Temporary Version Status

The package helps to create temporary files and directories.

Documentation

Example

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

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

// Do some work. let mut file = File::create(root.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.