aboutsummaryrefslogtreecommitdiffstats
path: root/drive/export.go
diff options
context:
space:
mode:
authorjeff.yin2019-11-12 11:29:05 +0800
committerTeddy Wing2023-03-27 19:31:17 +0200
commit92d09a94cdd8c2f78bd9615b5eefd635c369fd87 (patch)
tree4b2dc6a7fd6c817efdc5d00e1b209e9bdda24a36 /drive/export.go
parent8b463b2b53fa43270681f8b829f073fd60ab0b7b (diff)
downloadgdrive-92d09a94cdd8c2f78bd9615b5eefd635c369fd87.tar.bz2
support teamdrivesHEADmaster
Diffstat (limited to 'drive/export.go')
-rw-r--r--drive/export.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/drive/export.go b/drive/export.go
index a09594e..92a44a0 100644
--- a/drive/export.go
+++ b/drive/export.go
@@ -26,7 +26,7 @@ type ExportArgs struct {
}
func (self *Drive) Export(args ExportArgs) error {
- f, err := self.service.Files.Get(args.Id).Fields("name", "mimeType").Do()
+ f, err := self.service.Files.Get(args.Id).SupportsTeamDrives(true).Fields("name", "mimeType").Do()
if err != nil {
return fmt.Errorf("Failed to get file: %s", err)
}