We don't bite newbies here... much | |
PerlMonks |
Re^6: Rename unreliable on Windowsby elef (Friar) |
on Apr 04, 2012 at 16:22 UTC ( [id://963474]=note: print w/replies, xml ) | Need Help?? |
Thanks. Hoping that copying is more robust than renaming, I tried this:
Errors became less frequent, but they're still there. I'll try your suggestion. I really like the idea of sleeping increasing intervals between attempts, too. ------------------- Edit: did the test, and the solution works. I also added some reporting to see how many extra attempts are needed for the renamings to succeed. The second attempt was sufficient every time, and it was needed ~50 times before the script got to 10000 loops. I'll implement this with 5 attempts max (just in case the backup sw spends more time on larger files) and forget about the issue. Thanks.
In Section
Seekers of Perl Wisdom
|
|