Non-email production files should be entered in spreadsheet output

This was simply an oversight when I wrote ProcessDocumentDirectory()
This commit is contained in:
Bradley M. Kuhn 2023-06-03 11:13:03 -07:00
parent db9a80723f
commit 3f4a63dd3f

View file

@ -112,6 +112,12 @@ sub ProcessDocumentDirectory($$$) {
or die "unable to copy($fullFilePath, catfile($numberedOutputDir, $fileName))";
system('/usr/bin/unix2dos', '-q', $copiedFile) if (-T $copiedFile);
die "unable to copy $fullFilePath to $copiedFile" unless -f $copiedFile;
if ($GROUP_NAMES_BY_DIR{$GROUP} eq 'PRIVILEGED') {
push(@CSV_OUTPUT_ROWS, [ $upiFull, "", "", $fileName, "N/A", "", "", "", "", "", $GROUP ]);
} else {
push(@CSV_OUTPUT_ROWS, [ $upiFull, $fileName, uc($rfp), $GROUP_NAMES_BY_DIR{$GROUP} ]);
}
} else {
die("\"$fullFilePath\" is a strange file type, not handled!");
}