From a02e31d17527418871f7d1c67a2ed3d91f80f523 Mon Sep 17 00:00:00 2001 From: syscc Date: Wed, 22 Jul 2026 22:18:22 +0800 Subject: [PATCH] fix(115_open): clean parent path before lookup - Normalize parent paths before requesting folder metadata. - Prevent nested directory checks from sending trailing slashes to 115. Co-authored-by: Codex <267193182+codex@users.noreply.github.com> --- drivers/115_open/driver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/115_open/driver.go b/drivers/115_open/driver.go index cd43d1759..65fc5eefb 100644 --- a/drivers/115_open/driver.go +++ b/drivers/115_open/driver.go @@ -195,6 +195,7 @@ func (d *Open115) Get(ctx context.Context, path string) (model.Obj, error) { func (d *Open115) getFromParent(ctx context.Context, path, id string) (model.Obj, error) { path = stdpath.Clean(path) parent, name := stdpath.Split(path) + parent = stdpath.Clean(parent) parentID := d.GetRootId() if stdpath.Clean(parent) != stdpath.Clean(d.parentPath) { if err := d.WaitLimit(ctx); err != nil {