Automatic import - Adding a folder

bjoern.hoefer

Joined: 2008-06-27
Posts: 2
Posted: Wed, 2008-08-27 19:16

Hi,

according to my post (http://gallery.menalto.com/node/78977) with the question to import I now managed to import RAW-Files (CR2) into my gallery (with a self made shell-script).

Now I want to make folders in gallery with the name of the folder - in my case the date of shooting the photo (e.g. 2008-08-27)
For me this way of sorting my photos is the most prefered method.

It would be easy if I just make a cron-entry on my linux server which imports the photos at 12 PM - so i can be sure that the import only runs when the day is over.

But the major problem is, if I copy photos from a friend or anybody else which were taken on a day, which is already importet it would fail.

Why do I ask? I could just easy import them with my self made shell script which uses the import-syntax of galleryadd.pl...

I donno why, but galleryadd.pl just accepts the (I think) unique ID of the album (in my case 12482, or 12483 for the next day and so on) - is this normal?

If this behavior is normal, is there a possibilty or routine which was "developed" to search the unique-id of the albums name and pass it to any shell-script-usable format?

I hope this time somebody answers me...

Thanks in advance

Bjoern