Page 1 of 1

Watch Folder for File Deletion

PostPosted: Mon Jul 01, 2013 10:25 pm
by jcmurphy
Good Day!

I created a folder within Dropbox that holds all of our pictures (lots of pictures) from a current family reunion. I've shared this folder with LOTS of family members. As the family looks thru the pictures they'll find one they like and then they move it out of the folder which seems to delete it from Dropbox for everyone.

What I'd like to do is create a Hazel rule to monitor this folder for picture deletions. If a picture is deleted then Hazel will display a Notification. Then I can manually re-add the file and inform the family member how to copy files. (Or as version 2 of this rule - automatically re-add the file)

I thought there was a way to do this by monitoring the modification date of the folder, but I am unable to find the example I remember and I am unable to create a Hazel rule that works.

Any assistance would be greatly appreciated!

Thank you!
Jon

Re: Watch Folder for File Deletion

PostPosted: Tue Jul 02, 2013 12:04 pm
by a_freyer
Currently there is no way to monitor a file when it is removed from a folder. There are two things that you could do - (1) either a periodic one-way sync from your truth folder to the dropbox folder (say once a day or once an hour) or (2) create a shell script to check each file and replace it immediately. The first option is much preferred.