Expand description
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.
Structs
- A temporary folder.