It seems not right for calling ParentID() to be messing with

o.Path?
This commit is contained in:
Rob Emery 2025-04-19 11:20:14 +01:00
parent 15c4943373
commit 60b2bc4149

View File

@ -501,6 +501,6 @@ func (o contentDirectoryObject) ParentID() string {
if o.IsRoot() {
return "-1"
}
o.Path = path.Dir(o.Path)
return o.ID()
parentObject := contentDirectoryObject{Path: path.Dir(o.Path)}
return parentObject.ID()
}