Skip to content

Commit 69ffe97

Browse files
committed
Stop prepending ./ to every path in the node_path function
1 parent e879b50 commit 69ffe97

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/src/file_tree/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ pub fn node_path<F>(node: &TreeNodeRef<F>) -> Utf8PathBuf {
512512
ancestors
513513
.iter()
514514
.rev()
515+
.skip(1) // don't add "./" to the start of every path
515516
.chain(std::iter::once(node))
516517
.map(|node| node.data().name.as_str())
517518
.collect()

0 commit comments

Comments
 (0)