Trait assert_fs::FileTouch[][src]

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

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