(Aggregates in Perl, treated as Boolean values, are false if empty.)
}
}
-if ((scalar @packets) == 0) {
- ftp_syslog info => "No files found for processing.";
-} else {
+if (@packets) {
ftp_syslog info => "Processing complete: "
.(scalar @packets)." uploads processed.";
system FTPINDEX_TOOL, CONF_DIR_FTPRoot, CONF_DIR_Staging
unless IN_TEST_MODE;
ftp_syslog info => "Updated ftpindex";
+} else {
+ ftp_syslog info => "No files found for processing.";
}
# Clean up the inbox directory and the scratch directory by removing