salimoha / googlecl

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

Unable to handle filenames with spaces #311

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Own photo files with space in names.
2. Run: google picasa post --title anyalbum test\ 1.jpg

What is the expected output? What do you see instead?

Loading file test to album anyalbum
Failed to upload test. (601: Found <type 'unicode'>, not path name or object 
with a .read() method)
Loading file 1.jpg to album anyalbum
Failed to upload 1.jpg. (601: Found <type 'unicode'>, not path name or object 
with a .read() method)
2 photos failed to upload

Please use labels and text to provide additional information.

using trunk revision 444

Original issue reported on code.google.com by ferranb@gmail.com on 7 Oct 2010 at 10:13

GoogleCodeExporter commented 9 years ago
This patch does work on my tests but not sure if it's the best solution. It 
depends on if options.src needs something more than calling to do_globbing, 
i.e., any extra treatment in expand_as_command that I missed...

Original comment by ferranb@gmail.com on 7 Oct 2010 at 11:47

Attachments:

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

Original comment by tom.h.mi...@gmail.com on 8 Oct 2010 at 1:18

GoogleCodeExporter commented 9 years ago
I ended up simplifying/improving expand_as_command_line to solve this problem 
for interactive mode also, but the immediate solution is the same

Original comment by thmil...@google.com on 8 Oct 2010 at 1:20