Generate Alert when file not present on remote server

Is there a way to generate an Email alert when a file is not present on the remote server (during download process). I am thinking a pre-process script needs to be written.
First the script would need to perform a check for the file being transferred, if not present then generate Alert..
Any help would be appreciated..