Call std::env::set_current_dir() to help maintain current directory by system

This commit is contained in:
pegasus.cadence@gmail.com 2024-11-23 21:57:59 -08:00
parent a888b6cf25
commit 22a7e46891

View File

@ -137,6 +137,7 @@ impl DriveToPwdMap {
Some(_) => { Some(_) => {
let drive_index = drive_letter as usize - 'A' as usize; let drive_index = drive_letter as usize - 'A' as usize;
self.map[drive_index] = Some(drive_letter.to_string() + c.as_str()); self.map[drive_index] = Some(drive_letter.to_string() + c.as_str());
let _ = std::env::set_current_dir(path_str);
Ok(()) Ok(())
} }
} }