if the last file (i.e. fileName+"."+str(i+1)) already exists, os.rename will not overwrite it (at least not on windows machines)
|
os.rename(self.fileName+"."+str(i),self.fileName+"."+str(i+1)) |
therefore it is advisable to delete the last file before rotation
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