eli64s / readme-ai

README file generator, powered by large language model APIs 👾
MIT License
1.34k stars 143 forks source link

fix: handle read-only directory on Windows #95

Closed Zxilly closed 3 months ago

Zxilly commented 3 months ago

fix #94

By default git create .git as read-only on Windows, and shutil.rmtree by default won't delete these.

Just add an error handler for this case.

Zxilly commented 3 months ago

@eli64s hope this can be merged soon as it block the any potential Windows user

Zxilly commented 3 months ago

@eli64s Please review this patch, I am no longer using this project so I would like to remove the fork from my own repository. but I believe this should help other users who are trying to run this project on Windows.