Skip to content

Commit f59f29c

Browse files
committed
refactor: esclusione pdf interventi da controllo integrità file
1 parent 4a22ced commit f59f29c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

modules/aggiornamenti/src/Controlli/IntegritaFile.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@ protected function shouldExcludeFile($item, $relative_path)
330330
if (preg_match('#^interventi/firma_\d+\.(jpg|png)$#', $relative_path)) {
331331
return true;
332332
}
333+
334+
// PDF degli interventi generati dalle stampe (salvati direttamente senza passare per zz_files)
335+
// Pattern: interventi/Intervento num*.pdf
336+
if (preg_match('#^interventi/Intervento num.*\.pdf$#', $relative_path)) {
337+
return true;
338+
}
333339

334340
// File delle presentazioni bancarie (salvati direttamente)
335341
// Pattern: presentazioni_bancarie/*.xml

0 commit comments

Comments
 (0)