Trait FileTouch
Source pub trait FileTouch {
// Required method
fn touch(&self) -> Result<(), FixtureError>;
}
Expand description
Create an empty file at ChildPath
.
§Examples
use camino_tempfile_ext::prelude::*;
let temp = Utf8TempDir::new().unwrap();
temp.child("foo.txt").touch().unwrap();
temp.close().unwrap();