diff --git a/backend/drive/drive.go b/backend/drive/drive.go index 211fb40d2..55ad5a732 100644 --- a/backend/drive/drive.go +++ b/backend/drive/drive.go @@ -1591,6 +1591,10 @@ func (f *Fs) listRRunner(ctx context.Context, wg *sync.WaitGroup, in <-chan list listRSlices{dirs, paths}.Sort() var iErr error _, err := f.list(ctx, dirs, "", false, false, false, func(item *drive.File) bool { + // shared with me items have no parents when at the root + if f.opt.SharedWithMe && len(item.Parents) == 0 && len(paths) == 1 && paths[0] == "" { + item.Parents = dirs + } for _, parent := range item.Parents { var i int // If only one item in paths then no need to search for the ID