Trait FileTouch

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

Create empty files at ChildPath.

Required Methods§

Source

fn touch(&self) -> Result<(), FixtureError>

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();

Implementors§