From 25bb841eeb0c837a044779bc620ba4cc43319ccd Mon Sep 17 00:00:00 2001 From: Abhishek Shroff Date: Sat, 10 May 2025 23:48:33 +0530 Subject: [PATCH] [server][core] Fix parent path --- server/internal/core/fs/find.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {