in reply to Incomplete file write under Dancer2
Excel::Writer::XLSX uses Archive::Zip internally. So you can test that this does the job right inside your provided Dancer2 handler.
But it is likely that the culprit is here: https://metacpan.org/module/Excel::Writer::XLSX::Workbook/source#L1195 where File::Find finds files and also in the previous line:
my $wanted = sub { push @xlsx_files, $File::Find::name if -f };
If for some reason the file paths are different not visible or not accessible inside Dancer then the above silently ignores them.
One simple way to debug this is to edit https://metacpan.org/module/Excel::Writer::XLSX::Workbook/source#L1195 and print messages etc. as to which files are found and added (whichpm Excel::Writer::XLSX::Workbook or perldoc -D Excel::Writer::XLSX::Workbook will tell you where said module is located)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Incomplete file write under Dancer2
by realflash (Acolyte) on Jul 25, 2024 at 18:02 UTC | |
by swl (Prior) on Jul 25, 2024 at 23:04 UTC | |
by NERDVANA (Priest) on Jul 25, 2024 at 19:14 UTC | |
by pryrt (Abbot) on Jul 25, 2024 at 19:25 UTC | |
|
Re^2: Incomplete file write under Dancer2
by realflash (Acolyte) on Jul 25, 2024 at 16:27 UTC | |
|
Re^2: Incomplete file write under Dancer2
by realflash (Acolyte) on Jul 25, 2024 at 18:54 UTC |