nifey / epub2sphinx

epub2sphinx is a tool to convert epub files to ReST for Sphinx
https://pypi.org/project/epub2sphinx/
MIT License
12 stars 2 forks source link

Enable overwriting output directory #18

Closed nifey closed 2 years ago

nifey commented 2 years ago

As of now, the tool aborts with an error message if the output directory already exists. Instead of aborting we can ask the user if it is okay to overwrite the directory and then delete the directory if the user says yes.

We can also add a --overwrite flag for the user to explicitly tell that overwriting the output directory is okay.

nifey commented 2 years ago

Added in this commit.