in reply to Checking for Duplicate Files during an FTP

You need to get a listing of the files on the server (using the ls or dir method) and check your file name against it (perhaps by using grep Perl function).