pub trait FileTouch {
    fn touch(&self) -> Result<(), FixtureError>;
}
Expand description

Create empty files at ChildPath.

Required Methods§

Create an empty file at ChildPath.

Examples
use assert_fs::prelude::*;

let temp = assert_fs::TempDir::new().unwrap();
temp.child("foo.txt").touch().unwrap();
temp.close().unwrap();

Implementors§