- # simply add the timestring before the last .
- # fails for .tar.gz but the number extraction algorithm failed for all
- # '123 Storno zu 456' cases and doubled the name like:
- # Rechnung_123_Storno_zu_456_202113104 Storno zu 456_20211123_113023
- # TODO extension should be part of the File Model (filetype)
- my ($filename, $ext) = split(/\.([^\.]+)$/, $dbfile->file_name);
- my $fname = $filename . '_' . $dbfile->itime->strftime('%Y%m%d_%H%M%S');