This is a bug due to OFBIZ-12080, fileToCheck is the complete name of the file with path not the filename Thanks: Wai for report
This is a bug due to OFBIZ-12080, fileToCheck is the complete name of the file with path not the filename Thanks: Wai for report