#926 Warning: Failed to rename

7.3
open
nobody
None
2
2014-05-01
2014-05-01
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


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks