Skip to content

Commit

Permalink
filenamegen: more normalizing
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Apr 14, 2020
1 parent d793284 commit 17fe5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filenamegen/src/nodewalker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl<'a> NodeWalker<'a> {
return Some(normalize_slashes(
entry
.path()
.strip_prefix(&walker.root)
.strip_prefix(&normalize_slashes(walker.root.to_path_buf()))
.map(|p| p.to_path_buf())
.unwrap_or_else(|_| entry.path()),
));
Expand Down

0 comments on commit 17fe5e1

Please sign in to comment.