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

check --output-file is writeable before doing a processing job #254

Open
jasonblewis opened this issue Mar 7, 2024 · 1 comment
Open

Comments

@jasonblewis
Copy link

Recently I was trying to diagnose an issue with the output file not being writable. It was frustrating that m4b-tool would spend ages doing the conversion then everything is lost right at the end when it turns out the destination is not writeable.

Please consider adding a check to ensure file is writable before starting the whole process and warn the user or abort the job if it is not.

@sandreas
Copy link
Owner

sandreas commented Mar 8, 2024

This is a good suggestion, I'll try to implement this. However, it's not as easy as it sounds, because the output file name is dynamic / replaceable with variables. Some of them may partly depend on the encoded files, but I'll try what I can do.

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