We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 498a365 commit e44f219Copy full SHA for e44f219
src/main.rs
@@ -40,7 +40,8 @@ fn main() {
40
.unwrap_or(vec![]);
41
42
let dir = match matches.value_of("dir") {
43
- Some(dir) => dir.into(),
+ Some(dir) => std::fs::canonicalize(dir)
44
+ .expect("failed to get the canonical representation for path"),
45
None => std::env::current_dir().unwrap()
46
};
47
0 commit comments