Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Sep 1, 2015 · 7 comments
Closed

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

--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
Copy link
Author

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
Copy link
Author

Works just fine in trunk version of googlecl.

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

This issue was closed by revision r333.

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant