scaffold a basic bubble tree layout

This commit is contained in:
2025-12-31 02:32:59 +00:00
parent 30ff191fb0
commit 6ab1a915f4
6 changed files with 190 additions and 6 deletions
+9 -6
View File
@@ -52,13 +52,16 @@ type FsTreeImpl struct {
}
func NewFsTree(rootPath string) *FsTreeImpl {
root := &FsNode{
nodeType: FolderNode,
path: rootPath,
children: make([]*FsNode, 0),
expanded: true,
}
walkFileSystemAndBuildTree(rootPath, root)
return &FsTreeImpl{
root: &FsNode{
nodeType: FolderNode,
path: rootPath,
children: make([]*FsNode, 0),
expanded: true,
},
root: root,
}
}