aboutsummaryrefslogtreecommitdiffstats
path: root/drive/import.go
diff options
context:
space:
mode:
authorPetter Rasmussen2016-02-14 21:51:49 +0100
committerPetter Rasmussen2016-02-14 22:44:11 +0100
commit453c097b053b8a85395caf117136f7aec1d1ada4 (patch)
tree8598afaf18e16a133e29e99627b31511f11bcda0 /drive/import.go
parent2b11e0bf5e54d748ec4bafb11ea7b08b6dc51294 (diff)
downloadgdrive-453c097b053b8a85395caf117136f7aec1d1ada4.tar.bz2
Change output text, refactoring
Diffstat (limited to 'drive/import.go')
-rw-r--r--drive/import.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/drive/import.go b/drive/import.go
index cb82508..258f828 100644
--- a/drive/import.go
+++ b/drive/import.go
@@ -33,7 +33,7 @@ func (self *Drive) Import(args ImportArgs) error {
return fmt.Errorf("Mime type '%s' is not supported for import", fromMime)
}
- f, err := self.uploadFile(UploadArgs{
+ f, _, err := self.uploadFile(UploadArgs{
Out: ioutil.Discard,
Progress: args.Progress,
Path: args.Path,
@@ -45,9 +45,7 @@ func (self *Drive) Import(args ImportArgs) error {
return err
}
- fmt.Fprintf(args.Out, "[document] id: %s, name: %s\n", f.Id, f.Name)
- fmt.Fprintf(args.Out, "Imported %s with mime type: '%s'\n", args.Path, toMimes[0])
-
+ fmt.Fprintf(args.Out, "Imported %s with mime type: '%s'\n", f.Id, toMimes[0])
return nil
}