aboutsummaryrefslogtreecommitdiffstats
path: root/drive/download.go
diff options
context:
space:
mode:
Diffstat (limited to 'drive/download.go')
-rw-r--r--drive/download.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/drive/download.go b/drive/download.go
index 57e0160..31bcc58 100644
--- a/drive/download.go
+++ b/drive/download.go
@@ -7,6 +7,7 @@ import (
)
type DownloadFileArgs struct {
+ Out io.Writer
Id string
Force bool
NoProgress bool
@@ -55,7 +56,7 @@ func (self *Drive) Download(args DownloadFileArgs) (err error) {
return fmt.Errorf("Failed saving file: %s", err)
}
- fmt.Printf("Downloaded '%s' at %s, total %d\n", f.Name, "x/s", bytes)
+ fmt.Fprintf(args.Out, "Downloaded '%s' at %s, total %d\n", f.Name, "x/s", bytes)
//if deleteSourceFile {
// self.Delete(args.Id)