diff options
| author | Petter Rasmussen | 2015-02-22 16:00:17 +0100 | 
|---|---|---|
| committer | Petter Rasmussen | 2015-02-22 16:00:17 +0100 | 
| commit | f7bdb1c3a6e2f2b6644dd4142d3d6aaf1803b826 (patch) | |
| tree | 2b64209524ab513911e7b24ce6cc53e4bba09132 /drive.go | |
| parent | 6e7d08ea4e07a13cf18d89a069b1dbd42322c615 (diff) | |
| download | gdrive-f7bdb1c3a6e2f2b6644dd4142d3d6aaf1803b826.tar.bz2 | |
Support recursive directory uploads
Diffstat (limited to 'drive.go')
| -rw-r--r-- | drive.go | 4 | 
1 files changed, 2 insertions, 2 deletions
@@ -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  | 
