mirror of https://github.com/Xhofe/alist
fix(115_open): rename delay to take effect (close #8156)
parent
35d6f3b8fc
commit
4563aea47e
|
@ -149,6 +149,10 @@ func (d *Open115) Rename(ctx context.Context, srcObj model.Obj, newName string)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
obj, ok := srcObj.(*Obj)
|
||||||
|
if ok {
|
||||||
|
obj.Fn = newName
|
||||||
|
}
|
||||||
return srcObj, nil
|
return srcObj, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue