lucasdavila86 / googlecl

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

Folder structure issue #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
In Ubuntu
1. cd /home/user/Pictures
2. google picasa get *

Expected:
Downloading CIMG2639.JPG to /home/user/Pictures/[album]/CIMG2639.JPG

Seen:
Downloading CIMG2639.JPG to /home/user/Pictures/[first folder in 
directory]/[album]/CIMG2639.JPG

or

Downloading CIMG2639.JPG to /home/user/Pictures/[album]/[album]/CIMG2639.JPG

What version of the product are you using? On what operating system?
google 0.9.7
Linux 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010 i686 
GNU/Linux

Please provide any additional information below.

The command seems to find the first file in the directory and put all pictures 
there. I picture, ABC123.jpg, as the first file, and got an error that 
"ABC123.jpg is not a folder"

Original issue reported on code.google.com by donsl...@gmail.com on 21 Jun 2010 at 8:10

GoogleCodeExporter commented 9 years ago
To test my theory:

don@don-desktop:~/Pictures$ mkdir "aPicasa Backup"
don@don-desktop:~/Pictures$ google picasa get *
Downloading CIMG2564.JPG to aPicasa Backup/Muse/CIMG2564.JPG

Original comment by donsl...@gmail.com on 21 Jun 2010 at 8:13

GoogleCodeExporter commented 9 years ago
* was considered as a location and was processed by shell and replaced by the 
directory 'aPicasa Backup'. You haven't specified --title, so all photos will 
be downloaded. Muse is just a first album, the rest will follow.
So, if you want to download all photos from Muse album to the current directory 
you should run this command: google picasa get --title Muse ./
I hope it helps.

Original comment by bart...@gmail.com on 21 Jun 2010 at 9:46

GoogleCodeExporter commented 9 years ago
I've tried a modification of what you suggested: "google picasa get 
~/Pictures/". That is currently fetching all directories/photos.

I think the expected behavior for "google picasa get *" would be "get 
[wildcard] from picasa", the wildcard being everything. Running "rm *" in the 
terminal would cause all files in that directory to be removed.

Perhaps "google picasa get *" could have similar actions, but instead of "*" 
being the any/the first directory, the command would just assume the user wants 
the current directory to be used.

Thanks for your help, bartosh. It helped to clear things up for now.

Original comment by donsl...@gmail.com on 21 Jun 2010 at 10:07

GoogleCodeExporter commented 9 years ago
I suggested to use --title to specify the album. As you didn't do that script 
tries to get all albums by default.

Original comment by bart...@gmail.com on 22 Jun 2010 at 6:01

GoogleCodeExporter commented 9 years ago

Original comment by tom.h.mi...@gmail.com on 20 Jul 2010 at 4:00