I wrote a script which compares files on both folder.
But I need the comparison to happen only if the files are available on both sides.

Any suggestions?