diff --git a/server/internal/core/fs/find.go b/server/internal/core/fs/find.go index d8e69219..2b1aa6fc 100644 --- a/server/internal/core/fs/find.go +++ b/server/internal/core/fs/find.go @@ -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 {