Do not fire generateFor function if the file is hidden