commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Fiala" <>
Subject Re: Compare directories
Date Mon, 13 Feb 2017 08:05:54 GMT
Hello Gary,

Thanks, yes DirectoryUtils is probably more descriptive :).

I can provide the simple solution, of course this can be tuned & 
optimized as for the current solution the intersected files will be 
compared twice. But the current solution offers a low memory footprint 
as it doesn't have to store any state and is easy to understand.

How should the test design look like for this? Do you want to use "real" 
directories/files or do you already have mocks for the File API?

Can I supply this on github as a PR or do I need access to the SVN?

Best regards,


Am 12.02.2017 um 18:48 schrieb Gary Gregory:
> I would put that in its own class. FU is a bad name to start with, esp in
> this case where you are comparing directories.
> Gary
> On Feb 12, 2017 8:21 AM, "J. Fiala" <> wrote:
> Hi there,
> Currently it seems there is no utility method to compare two directory
> structures:
> ry-trees-for-equality/42189853#42189853
> I did a first rough implementation for Java 7 NIO and posted it at SO,
> please advise if it makes sense to include this into FileUtils and if it
> then needs to be backported to Java 6?
> Best regards,
> Johannes
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message