pub async fn with_current_dir_async<F, R>(dir: &Path, f: F) -> Result<R>where
F: AsyncFnOnce() -> Result<R>,Expand description
Temporarily changes the current working directory while executing an asynchronous closure.
pub async fn with_current_dir_async<F, R>(dir: &Path, f: F) -> Result<R>where
F: AsyncFnOnce() -> Result<R>,Temporarily changes the current working directory while executing an asynchronous closure.