Trait assert_fs::prelude::TempDirChildExt [] [src]

pub trait TempDirChildExt {
    fn child<P>(&self, path: P) -> ChildPath
    where
        P: AsRef<Path>
; }

Extend TempDir to perform operations on relative paths within the temp directory via ChildPath.

Required Methods

Create a path within the temp directory.

Examples

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

let temp = TempDir::new("TempDirChildExt_demo").unwrap();
println!("{:?}", temp.path());
println!("{:?}", temp.child("foo/bar.txt").path());
temp.close().unwrap();

Implementors