I am working on part of a publishing system that is in a multiserver enviroment. One of the current pieces takes incoming data out of multiple FTP directories every half hour and copies it to another directory using a system call to cp. 99.9% of the time this is working but occasionally I file will be mid FTP upload when the process kicks and I'll get 0 k or half files coming in. I've tried a few different things to no avail and was wondering if anyone knew of a way to be sure files weren't still in the process of being uploaded when I started running code centering around them.