Trait assert_fs::ChildPathTouchExt [] [src]

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

Extend ChildPath to create empty files.

Required Methods

Create an empty file at ChildPath.

Examples

This example is not tested
extern crate assert_cli;
use assert_cli::temp::*;

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

Implementors