invoice2data icon indicating copy to clipboard operation
invoice2data copied to clipboard

--move will fail when any parsed field contains illegal filesystem characters

Open nomandera opened this issue 2 years ago • 1 comments

The default move will rename invoices to {date} {Invoice Number} {Description} however when any parsed field contains illegal filesystem characters the move will fail with:

Error message: [Errno 2] No such file or directory: '

An example of this would be an invoice number of the form 123/001/2023 with the / character being illegal on most filesystems although there are many more examples.

Is there correct way to sanitize or work around this natively?

nomandera avatar Dec 26 '23 11:12 nomandera

Hi, Thanks for the feedback. It makes sense to preform some kind of sanitization to filter out illegal characters on the filename. Can you make a PR for this?

bosd avatar Dec 29 '23 11:12 bosd