Compare local and remote directory to find corrupted files

Hi,

Is it possible to compare a remote ftp directory with a local downloaded?

Regards

Ali Azarnoosh