Skip to main content

enter_cwd

Function enter_cwd 

Source
pub fn enter_cwd(cwd: Option<String>) -> Guard
Expand description

Run f with the ambient cwd temporarily replaced (root unchanged) — used by intra-line cd tracking as it walks a chain’s statements. Restored on drop.