Items in subfolder not being copied

Posted:
Mon Jun 21, 2010 3:22 pm
by shalom777
I'm using Hazel on a machine that get uploaded files for print from our website and copies them over to our file server. The uploading process creates a subfolder for each job and dumps all the files into there. The problem is the files don't always come in at once. Sometimes there is 5-90 minutes between the first and last file. Hazel copies over the subfolder and the first file, but the remaining items are never copied over unless I for Hazel to run again (Hazel menu > Run Rules > *rule name here*). I've tried having it "run rules on folder contents" but that doesn't make any difference. It seems that once a rule has been executed on a subfolder it get's checked off the list and Hazel doesn't look inside it again to see if anything has changed.
Any ideas?
Re: Items in subfolder not being copied

Posted:
Mon Jun 21, 2010 3:26 pm
by Mr_Noodle
Are you having Hazel copy the folder or the files within in? If the folder, then yes, if the rule matches the folder, it won't run again unless you set up the conditions properly. For instance, anytime a file is added to a folder, it's modification date is updated so you can do something like "Date modified is after date last matched".
This still won't be foolproof because the folder's date modified is only updated when the file is added. It's possible the uploading process is still writing to the file sometime after the file has been added. If you want to make this more robust, the uploading program needs to give some indication that it's done uploading. I don't know how much control you have over this though. If you provide more details on the uploader process, I can better assist.