pub trait FileTouch { fn touch(&self) -> Result<(), FixtureError>; }
Create empty files at ChildPath.
ChildPath
Create an empty file at ChildPath.
use assert_fs::prelude::*; let temp = assert_fs::TempDir::new().unwrap(); temp.child("foo.txt").touch().unwrap(); temp.close().unwrap();