We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if the last file (i.e. fileName+"."+str(i+1)) already exists, os.rename will not overwrite it (at least not on windows machines)
fileName+"."+str(i+1)
RotatingTextFile/RotatingTextFile/__init__.py
Line 37 in a82d2f7
therefore it is advisable to delete the last file before rotation
The text was updated successfully, but these errors were encountered:
from the python docs os.rename(src, dst, *, src_dir_fd=None, dst_dir_fd=None) ...
os.rename(src, dst, *, src_dir_fd=None, dst_dir_fd=None)
On Windows, if dst exists a FileExistsError is always raised. ...
If you want cross-platform overwriting of the destination, use replace().
Sorry, something went wrong.
No branches or pull requests
if the last file (i.e.
fileName+"."+str(i+1)
) already exists, os.rename will not overwrite it (at least not on windows machines)RotatingTextFile/RotatingTextFile/__init__.py
Line 37 in a82d2f7
therefore it is advisable to delete the last file before rotation
The text was updated successfully, but these errors were encountered: