[][src]Trait assert_fs::fixture::FileTouch

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

Create empty files at ChildPath.

Required methods

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

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();
Loading content...

Implementors

impl FileTouch for ChildPath[src]

impl FileTouch for NamedTempFile[src]

Loading content...