as usual...
It Depends
Offhand, there are a few reasons why this might be valid/desirable:
- you're writing to a removable drive that may not be instantly ready
- you're writing to a network drive that might disappear and reappear a few milliseconds later (temporary network glitch)
- something complete different...
One thing is almost certain: that kind of retry mechanism was not coded accidentally or casually!
I suggest tracking down the original author and asking him/her why he/she did that... there might be a very good reason, or the original reason might be long obsoleted.