lucasdavila86 / googlecl

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

google docs edit doesn't honor --folder when creating files #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. google docs edit --folder "test" --format "txt" --editor "notepad" --title 
"my file"

What is the expected output? What do you see instead?
I expect GoogleCL to look for a document called "my file" in a folder called 
"test" in Google Docs, not find it, then open notepad. When I save the temp 
file and close notepad, I expect GoogleCL to create a file called "my file" in 
a folder called "test" in Google Docs.

Instead, GoogleCL creates the file but doesn't put it in the proper folder. So 
next time I run the same command, it again claims it can't find the file and it 
creates a new copy of the file instead of editing the old one. If I remove the 
--folder argument, then it creates and edits the file. I just can't get it to 
create a new file in a folder.

What version of the product are you using? On what operating system?

GoogleCL v0.9.7
Windows XP Professional SP3

Please provide any additional information below.

Original issue reported on code.google.com by itruett on 21 Jun 2010 at 7:59

GoogleCodeExporter commented 9 years ago
--folder doesn't appear to work for "docs upload" either.

Original comment by john.na...@gmail.com on 23 Jun 2010 at 6:59

GoogleCodeExporter commented 9 years ago
agreed, I have same issue with docs upload not recognizing folder

Original comment by claybi...@gmail.com on 25 Jun 2010 at 5:51

GoogleCodeExporter commented 9 years ago
Works just fine in trunk version of googlecl.

Original comment by bart...@gmail.com on 26 Jun 2010 at 8:48

GoogleCodeExporter commented 9 years ago
Just tested with 0.9.8: it works for pre-existing folders. For folders that 
don't exist, I get this warning:

C:\dev\Google\googlecl\library.zip\googlecl\docs\service.py:532: UserWarning: 
No folder found that matches scratch

Where "scratch" is the name of the folder I wanted to create a document in.

I think it would be preferable to automatically create folders, or to fail 
completely if the folder doesn't exist.

Original comment by itruett on 2 Jul 2010 at 1:31

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r333.

Original comment by tom.h.mi...@gmail.com on 9 Jul 2010 at 1:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The functionality that itruett describes is made possible via the attached 
patch (applied to 0.9.8). If the folder does not exist, it is created. You can 
also create entire paths:

google docs edit --editor vim -n newfile --folder new_folder/new_subfolder

will create file newfile and place it in newly created folder new_subfolder.

Original comment by tom.h.mi...@gmail.com on 9 Jul 2010 at 2:07

Attachments: