Skip to content

Commit

Permalink
fix(SupportsAllDrives)
Browse files Browse the repository at this point in the history
  • Loading branch information
donwa authored Feb 13, 2020
1 parent 7ee12c7 commit 1bf4285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/drive/drive.go
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ func NewFs(name, path string, m configmap.Mapper) (fs.Fs, error) {
}
//------------------------------------------------------
if(maybeIsFile){
file,err := f.svc.Files.Get(opt.RootFolderID).Fields("name","id","size","mimeType").Do()
file,err := f.svc.Files.Get(opt.RootFolderID).Fields("name","id","size","mimeType").SupportsAllDrives(true).Do()
if err == nil{
//fmt.Println("file.MimeType", file.MimeType)
if( "application/vnd.google-apps.folder" != file.MimeType && file.MimeType != ""){
Expand Down

0 comments on commit 1bf4285

Please sign in to comment.