I am working on integration testing some part of my code that creates directory trees under SVN. This requires me to test if the directory structure and the files within are what I expect them to be.

On one hand I have the expected directory tree with the files I want and on the other, an export of the files from SVN (prefer svn export over svn co to avoid the .svn noise).

However, is there any library that can assert two directory trees? The last resort I have in mind is to do an iterative comparison myself.

Basically I am looking for an API that can just accept two directories and tell me if they are equal or not.

Something on the lines of

boolean areDirectoriesEqual(File dir1, File dir2)
Edit
Report