We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
chdir
std::env::set_current_dir
1 parent 814a560 commit c185f08Copy full SHA for c185f08
library/std/src/env.rs
@@ -61,6 +61,7 @@ pub fn current_dir() -> io::Result<PathBuf> {
61
/// assert!(env::set_current_dir(&root).is_ok());
62
/// println!("Successfully changed working directory to {}!", root.display());
63
/// ```
64
+#[doc(alias = "chdir")]
65
#[stable(feature = "env", since = "1.0.0")]
66
pub fn set_current_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
67
os_imp::chdir(path.as_ref())
0 commit comments