diff options
| author | Carlos Garay | 2015-02-26 01:10:04 -0500 |
|---|---|---|
| committer | Carlos Garay | 2015-02-26 01:10:04 -0500 |
| commit | b22179bb3c791d870a95b0106df7cc49a8e3b92c (patch) | |
| tree | 3548c35241e082d1679a5615908b7fb33c9faec6 /cli/cli.go | |
| parent | 997b226db233936fab34ea082453d3bf9433dec5 (diff) | |
| download | gdrive-b22179bb3c791d870a95b0106df7cc49a8e3b92c.tar.bz2 | |
fixed bug that named all stdin uploads "untitled"
Diffstat (limited to 'cli/cli.go')
| -rw-r--r-- | cli/cli.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -169,7 +169,7 @@ func makeFolder(d *gdrive.Drive, title string, parentId string, share bool) (*dr // Upload file to drive func UploadStdin(d *gdrive.Drive, input io.ReadCloser, title string, parentId string, share bool, mimeType string, convert bool) error { // File instance - f := &drive.File{Title: "untitled"} + f := &drive.File{Title: title} // Set parent (if provided) if parentId != "" { p := &drive.ParentReference{Id: parentId} |
