If you check with a higher frequency than the buffer is flushed, you will get wrong results and will never be certain when the file is "finished".
CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
| [reply] |
Basically that means that it won't work any better than stat(), and it's probably slower.
| [reply] |
For sure it is slower, it is the price you pay for not having to remember what each slot in the returned list of stat means ...
CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
| [reply] [d/l] |