[server][core] Fix parent path

This commit is contained in:
Abhishek Shroff
2025-05-10 23:48:33 +05:30
parent 9f5ab47ebc
commit 25bb841eeb

View File

@@ -98,7 +98,7 @@ func (f filesystem) targetNameParentByPathWithRoot(path string, src Resource) (s
i := strings.LastIndex(path, "/")
parentPath := ""
if i > 0 {
parentPath = path[i:]
parentPath = path[:i]
}
parent, err := f.ResourceByPath(parentPath)
if err != nil {