./galleryadd.pl and existing Albums

bsodergren

Joined: 2005-04-18
Posts: 6
Posted: Tue, 2006-10-03 15:42

Hi, I have gallery installed on an intranet style site where i have an "incoming" folder on a share on our network file server.

The gallery installations g2data/albums folder is mapped to this share.

What i want, is to have users drop images and/or folders of images into the directory and periodicly add the images/folders too gallery in a specific album.

The problem that i have is that if the script runs twice before a directory is removed, there will be two albums, both named the same (same thing with images).

Is there an easy way to modify galleryadd.pl to have it NOT create new albums if an album or image of the same name already exists ?

Also, anyone know of a resource to setup a watched directory on linux so that, similar to macs, when files are done being written to the directory a script runs and processes the file ?

Thank You.