Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nomandera opened this issue Dec 26, 2023 · 1 comment

Comments

@nomandera
Copy link

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?

@bosd
Copy link
Collaborator

bosd commented Dec 29, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants