Trait assert_fs::TempDirCopyExt [] [src]

pub trait TempDirCopyExt {
    fn copy_from<P, S>(
        &self,
        source: P,
        patterns: &[S]
    ) -> Result<(), FixtureError>
    where
        P: AsRef<Path>,
        S: AsRef<str>
; }

Extend TempDir to copy files into it.

Required Methods

Copy files and directories into the current path from the source according to the glob patterns.

Examples

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

let temp = TempDir::new("TempDirChildExt_demo").unwrap();
temp.copy_from(".", &["*.rs"]).unwrap();
temp.close().unwrap();

Implementors