I have a script that take files and moves them to a directory so that they can be added to a picture gallery.
Currently the script (using php-cli) just uses exec(mv foo bar) to move the files, but the problem is that the files are getting moved whether the file is still in transfer or not. Expected unix behavior, but not the desired behavior. Is there something I can do that says "ignore this incomplete file and move on to the next one"?