Process files transform throws errors on file delete operation
@@ -208,7 +208,7 @@ public class ProcessFiles extends BaseTransform<ProcessFilesMeta, ProcessFilesDa
}
break;
case ProcessFilesMeta.OPERATION_TYPE_DELETE:
- if (!meta.simulate || !data.sourceFile.delete()) {
+ if (!meta.simulate && !data.sourceFile.delete()) {
throw new HopException(
BaseMessages.getString(
PKG, "ProcessFiles.Error.CanNotDeleteFile", data.sourceFile.toString()));
