New issue 367 by adam.i.howard: option to overwrite existing Docs file
http://code.google.com/p/googlecl/issues/detail?id=367
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.
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.
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"