change a few renameFile's to rename
AFAIK, none of these ever operate on directories, but nor do I want to explicitly check if they're files and fail if not.
This commit is contained in:
parent
1669e80e85
commit
070ed4a766
4 changed files with 6 additions and 5 deletions
|
@ -30,7 +30,7 @@ rotateLog logfile = go 0
|
|||
| num > maxLogs = return ()
|
||||
| otherwise = whenM (doesFileExist currfile) $ do
|
||||
go (num + 1)
|
||||
renameFile currfile nextfile
|
||||
rename currfile nextfile
|
||||
where
|
||||
currfile = filename num
|
||||
nextfile = filename (num + 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue