Skip to content

Commit

Permalink
fix(google): folder judgment missed
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Sep 10, 2022
1 parent 5ad3849 commit 56219bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/google_drive/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
}
Expand Down

0 comments on commit 56219bf

Please sign in to comment.