Skip to content
Myr

Fix root directory for Windows

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by J.W · committed by David Peter · parent 9d26b74 · Browse files · 1 file+6 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:src/main.rs+6 added-1 removed
56 unmodified lines
57 }5859 // Get the root directory for the search60 let mut root_dir_buf = match matches.value_of("path") {61 Some(path) => PathBuf::from(path),61 Some(path) => {62 #[cfg(windows)]63 let path = path.replace('/', "\\");6465 PathBuf::from(path)66 }67 None => current_dir.to_path_buf(),68 };69 if !fshelper::is_dir(&root_dir_buf) {70 error(&format!(
92 unmodified lines