diff options
| author | Petter Rasmussen | 2016-10-12 01:38:59 +0200 | 
|---|---|---|
| committer | GitHub | 2016-10-12 01:38:59 +0200 | 
| commit | 8f299578a2f0222e4b11e1a03692f7aba69c0977 (patch) | |
| tree | cb59f29f791d2886905382a31a9279866ad3a95d /drive/update.go | |
| parent | 9e8d2cd027c72b2364026dc32cd4ca5494d922d9 (diff) | |
| parent | 8f5194c7154b20965250f6333226a18e225647dd (diff) | |
| download | gdrive-8f299578a2f0222e4b11e1a03692f7aba69c0977.tar.bz2 | |
Merge pull request #201 from jblazquez/master
Added --description option
Diffstat (limited to 'drive/update.go')
| -rw-r--r-- | drive/update.go | 23 | 
1 files changed, 12 insertions, 11 deletions
| diff --git a/drive/update.go b/drive/update.go index 2ab684e..f496f52 100644 --- a/drive/update.go +++ b/drive/update.go @@ -11,16 +11,17 @@ import (  )  type UpdateArgs struct { -	Out       io.Writer -	Progress  io.Writer -	Id        string -	Path      string -	Name      string -	Parents   []string -	Mime      string -	Recursive bool -	ChunkSize int64 -	Timeout   time.Duration +	Out         io.Writer +	Progress    io.Writer +	Id          string +	Path        string +	Name        string +	Description string +	Parents     []string +	Mime        string +	Recursive   bool +	ChunkSize   int64 +	Timeout     time.Duration  }  func (self *Drive) Update(args UpdateArgs) error { @@ -32,7 +33,7 @@ func (self *Drive) Update(args UpdateArgs) error {  	defer srcFile.Close()  	// Instantiate empty drive file -	dstFile := &drive.File{} +	dstFile := &drive.File{Description: args.Description}  	// Use provided file name or use filename  	if args.Name == "" { | 
