@evildictaitor: Leaving aside the almost inevitable race conditions in determining that, it's still deleting files based on some external factor that is out of the control of the OS. What if the file on the server has been momentarily deleted with the intention of putting a replacement in? Or if there is some temporary issue that makes the file appear to have been deleted?