anasAsh / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

option to overwrite existing Docs file #367

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What service (Calendar, Docs, Picasa) should be enhanced? Docs

What is the enhancement?

Provide an option for the upload command to let user overwrite an existing file 
(doc or spreadsheet) with the file to be uploaded. As it works right now, it 
appears your upload only creates a new file with the same filename but 
different url/key.

Original issue reported on code.google.com by adam.i.h...@gmail.com on 19 Feb 2011 at 11:26

GoogleCodeExporter commented 9 years ago
With some fairly simple scripting, you can use the 'Edit' function within 
GoogleGL to:
1. Detect the filename being downloaded.
2. Overwrite that file with the file you want to upload.

GoogleCL will see the file has changed and will upload the new file in place of 
the old one.

It's not ideal but it's a workaround until Google introduce a -clobber function.

Original comment by paul_sl...@xyratex.com on 28 Nov 2011 at 2:02

GoogleCodeExporter commented 9 years ago
You could also write a script to delete the old file and replace it with a new 
one.
docs delete "filename.txt"
docs upload "filename.txt"

Original comment by Coilamg on 9 Dec 2011 at 9:46

GoogleCodeExporter commented 9 years ago
deleting and uploading is not a work around for a shared file.

Original comment by gryf...@gmail.com on 23 Jan 2015 at 8:35