Skip to content

Commit de56968

Browse files
authored
fix(guangyapan): resolve offline root folder lookup (#9516)
1 parent 71082f0 commit de56968

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

drivers/guangyapan/offline.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ func (d *GuangYaPan) OfflineDownload(ctx context.Context, fileURL string, parent
3939
}
4040

4141
parentID := parentDir.GetID()
42-
if parentID == d.RootFolderID {
42+
rootID, err := d.getRootFolderID(ctx)
43+
if err != nil {
44+
return nil, err
45+
}
46+
if parentID == rootID {
4347
parentID = ""
4448
}
4549

0 commit comments

Comments
 (0)