title: How to diff files/folders in Gradle?
body: <p>I need to write a script in Gradle that takes as an input 2 folders. 
  Both folders contain &lt;1000 files (mostly images) with reasonably similar structure.
  The output should be a list of files that changed and what kind of difference it is (added file/deleted file/changed file).</p>
  
  <p>Edit: Heres a sample script <a href="https://gist.github.com/igormukhin/71d780c4274336eeb297" rel="noreferrer">https://gist.github.com/igormukhin/71d780c4274336eeb297</a> . The only problem is that it compares by timestamp.</p>