Are you using Open Deploy to move files? Then it has in built comaprison parameters which can be made use of.
I am trying achieve in workflow, specific files needs to be deployed from test to prod ( this can be done using open deploy) however I could not able to find options to compare content between servers for specific list of files