fix(google): folder judgment missed

pull/1628/head
Noah Hsu 2022-09-10 13:09:18 +08:00
parent 5ad3849bb6
commit 56219bf096
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func fileToObj(f File) *model.ObjThumb {
Name: f.Name,
Size: size,
Modified: time.Time{},
IsFolder: false,
IsFolder: f.MimeType == "application/vnd.google-apps.folder",
},
Thumbnail: model.Thumbnail{},
}