aboutsummaryrefslogtreecommitdiffstats
path: root/drive.go
diff options
context:
space:
mode:
authorPetter Rasmussen2015-02-22 16:00:17 +0100
committerPetter Rasmussen2015-02-22 16:00:17 +0100
commitf7bdb1c3a6e2f2b6644dd4142d3d6aaf1803b826 (patch)
tree2b64209524ab513911e7b24ce6cc53e4bba09132 /drive.go
parent6e7d08ea4e07a13cf18d89a069b1dbd42322c615 (diff)
downloadgdrive-f7bdb1c3a6e2f2b6644dd4142d3d6aaf1803b826.tar.bz2
Support recursive directory uploads
Diffstat (limited to 'drive.go')
-rw-r--r--drive.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/drive.go b/drive.go
index 2287831..76ffc7e 100644
--- a/drive.go
+++ b/drive.go
@@ -105,10 +105,10 @@ func main() {
case "upload":
args := opts.Upload
if args.Stdin {
- err = cli.Upload(drive, os.Stdin, args.Title, args.ParentId, args.Share, args.MimeType, args.Convert)
+ err = cli.UploadStdin(drive, os.Stdin, args.Title, args.ParentId, args.Share, args.MimeType, args.Convert)
} else {
err = cli.Upload(drive, args.File, args.Title, args.ParentId, args.Share, args.MimeType, args.Convert)
- }
+ }
case "download":
args := opts.Download