tree is now filetree based

This commit is contained in:
Bel LaPointe
2022-02-09 08:49:08 -07:00
parent fc263d6c2d
commit 9ad262e607
5 changed files with 122 additions and 51 deletions

View File

@@ -212,7 +212,7 @@ func (server *Server) rootHandler(w http.ResponseWriter, r *http.Request) error
}
func (server *Server) tree() *Tree {
return NewTree(path.Join(server.root, "tree.yaml"))
return NewTree(path.Dir(server.diskFilePath("id")))
}
func (server *Server) diskFilePath(id string) string {