They could also write them in the same directory but just add a suffix like `.COMPLETED` after the file is finished being written. This is what I've seen other systems do.