with_current_dir

Function with_current_dir 

Source
pub fn with_current_dir<F, R>(dir: &Path, f: F) -> Result<R>
where F: FnOnce() -> Result<R>,
Expand description

Temporarily changes the current working directory while executing a closure.