We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb00584 commit 5811f29Copy full SHA for 5811f29
pkg/gui/filetree/build_tree.go
@@ -162,9 +162,13 @@ func join(strs []string) string {
162
}
163
164
func SplitFileTreePath(path string, showRootItem bool) []string {
165
+ return split(InternalTreePathForFilePath(path, showRootItem))
166
+}
167
+
168
+func InternalTreePathForFilePath(path string, showRootItem bool) string {
169
if showRootItem {
- return split("./" + path)
170
+ return "./" + path
171
172
- return split(path)
173
+ return path
174
0 commit comments