Skip to content
Snippets Groups Projects
Commit 8a23525c authored by Yorhel's avatar Yorhel
Browse files

Fix double-slash prefix in path display when scanning root

parent 929cc756
No related branches found
No related tags found
No related merge requests found
...@@ -249,7 +249,7 @@ pub const Dir = packed struct { ...@@ -249,7 +249,7 @@ pub const Dir = packed struct {
var i: usize = components.items.len-1; var i: usize = components.items.len-1;
while (true) { while (true) {
if (i != components.items.len-1) out.append('/') catch unreachable; if (i != components.items.len-1 and !(out.items.len != 0 and out.items[out.items.len-1] == '/')) out.append('/') catch unreachable;
out.appendSlice(components.items[i]) catch unreachable; out.appendSlice(components.items[i]) catch unreachable;
if (i == 0) break; if (i == 0) break;
i -= 1; i -= 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment