how could I check whether ftp a file is successfully done or not

how could i check that the ftp oof any file is successfully done.

thanks in advance.

do a sum on the source file and destination file. If you get the same value your ftp was successful.