mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
dircache: allow empty string as rootparentid #FIXME
This commit is contained in:
@@ -361,9 +361,10 @@ func (dc *DirCache) RootParentID(ctx context.Context, create bool) (ID string, e
|
||||
} else if dc.rootID == dc.trueRootID {
|
||||
return "", errors.New("is root directory")
|
||||
}
|
||||
if dc.rootParentID == "" {
|
||||
return "", errors.New("internal error: didn't find rootParentID")
|
||||
}
|
||||
// FIXME: drime rootparentIDs are ""?
|
||||
// if dc.rootParentID == "" {
|
||||
// return "", errors.New("internal error: didn't find rootParentID")
|
||||
// }
|
||||
return dc.rootParentID, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user