Skip to main content

canonicalize_with_context_async

Function canonicalize_with_context_async 

Source
pub async fn canonicalize_with_context_async(
    path: &Path,
    context: &str,
) -> Result<PathBuf>
Expand description

Canonicalize path with context (async).

dunce::canonicalize is a synchronous syscall; we wrap it in spawn_blocking to preserve the async interface without blocking the runtime, matching the behaviour of tokio::fs::canonicalize.