Skip to content

Commit e44f219

Browse files
committed
fix
1 parent 498a365 commit e44f219

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ fn main() {
4040
.unwrap_or(vec![]);
4141

4242
let dir = match matches.value_of("dir") {
43-
Some(dir) => dir.into(),
43+
Some(dir) => std::fs::canonicalize(dir)
44+
.expect("failed to get the canonical representation for path"),
4445
None => std::env::current_dir().unwrap()
4546
};
4647

0 commit comments

Comments
 (0)