Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#926 Warning: Failed to rename

7.3
open
nobody
None
2
2014-05-01
2014-05-01
Keith Mashinter
No

The use of rename(old,new) in awstats.pl on Windows is a problem since it only works on the filename not including directory/folder paths.

Trying to -update data files was resulting in a "Warning: Failed to rename" and the loss of the data file (e.g. a monthly summary).

use File::Copy; with move(...) instead of rename(...) in awstats.pl solved the problem.
http://perldoc.perl.org/File/Copy.html

This was with awstats 7.3.

Discussion