From 42373c1cffec0a89a997e246a65d8889ad2d9145 Mon Sep 17 00:00:00 2001 From: dougal Date: Mon, 8 Dec 2025 17:12:25 +0000 Subject: [PATCH] dircache: allow empty string as root parent id This was causing an internal error with the drime backend which has the root parent id as an empty string. This shouldn't affect anything else. --- lib/dircache/dircache.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/dircache/dircache.go b/lib/dircache/dircache.go index 7fdf9e1af..6a17dc2ca 100644 --- a/lib/dircache/dircache.go +++ b/lib/dircache/dircache.go @@ -361,9 +361,6 @@ 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") - } return dc.rootParentID, nil }