Read write directory object (#7003)

* read directory object

* address comments

* address comments

* name should not have "/" prefix

* fix compilation

* refactor
This commit is contained in:
Chris Lu
2025-07-20 13:28:17 -07:00
committed by GitHub
parent 41b5bac063
commit 85036936d1
4 changed files with 45 additions and 46 deletions

View File

@@ -8,6 +8,7 @@ import (
type FullPath string
func NewFullPath(dir, name string) FullPath {
name = strings.TrimSuffix(name, "/")
return FullPath(dir).Child(name)
}