Describe the bug
Visit https://docs.python.org/3/library/os.html#os.rename
Overwriting files in Windows raises FileExistsError.(__main__.py line 326)
According to the document, I think it would be better to use replace() for cross-platform.
Thank you for the report. Could you provide a detailed traceback? We would greatly appreciate if you could submit a Pull Request to directly address this issue.
Describe the bug Visit https://docs.python.org/3/library/os.html#os.rename Overwriting files in Windows raises FileExistsError.(
__main__.py
line 326) According to the document, I think it would be better to use replace() for cross-platform.To Reproduce Steps to reproduce the behavior:
pigar
..pigar
..Expected behavior Overwrite requirements.txt.
Context (Environment)
Python
: 3.11.5pigar
: 2.1.1