Do not fire generateFor function if the file is hidden
Handle FileNotFoundException in generateFor. Fix for #28
do not fire generateFor for directories too
Merge pull request #29 from filipw/master

Prevent crashes on temporary/partially downloaded files