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:
@@ -8,6 +8,7 @@ import (
|
||||
type FullPath string
|
||||
|
||||
func NewFullPath(dir, name string) FullPath {
|
||||
name = strings.TrimSuffix(name, "/")
|
||||
return FullPath(dir).Child(name)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user