Trait assert_fs::TempDirChildExt[][src]

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

Access paths within TempDir for testing.

Required Methods

Create a path within the temp directory.

Examples

use assert_fs::prelude::*;

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

Implementors