Skip to content

Commit a21bc8b

Browse files
authored
fix(115_open): clean parent path before lookup (#2820)
1 parent bacd087 commit a21bc8b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/115_open/driver.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ func (d *Open115) Get(ctx context.Context, path string) (model.Obj, error) {
195195
func (d *Open115) getFromParent(ctx context.Context, path, id string) (model.Obj, error) {
196196
path = stdpath.Clean(path)
197197
parent, name := stdpath.Split(path)
198+
parent = stdpath.Clean(parent)
198199
parentID := d.GetRootId()
199200
if stdpath.Clean(parent) != stdpath.Clean(d.parentPath) {
200201
if err := d.WaitLimit(ctx); err != nil {

0 commit comments

Comments
 (0)