m4b-tool icon indicating copy to clipboard operation
m4b-tool copied to clipboard

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

Open jasonblewis opened this issue 1 year ago • 1 comments

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.

jasonblewis avatar Mar 07 '24 23:03 jasonblewis

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.

sandreas avatar Mar 08 '24 07:03 sandreas