in reply to Do the File::Stat values Update While a File is Being Written?

The answer will depend on the o/s and how it's been tuned. I suspect (suspect is one step above wild-assed guess) that a file that's being overwritten won't be updated until the write operation is completed, so that a communication failure won't leave a corrupted file. For a new file, the size and modification information will be updated when the write-buffer is flushed.

The answer will depend on the o/s, how it's been tuned, and the details of how the file transfer protocol is managed at the receiving end.


Information about American English usage here and here. Floating point issues? Please read this before posting. — emc

  • Comment on Re: Do the File::Stat values Update While a File is Being Written?

Replies are listed 'Best First'.
Re^2: Do the File::Stat values Update While a File is Being Written?
by Joost (Canon) on Jul 15, 2008 at 15:31 UTC