Skip to content

Commit

Permalink
Fix comparison bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
fugerit79 committed Sep 13, 2023
1 parent 503a5e5 commit 55f7fa0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ private void handleCompareWork( String removePath, File file1, File file2, Prope
String fileEntry1 = removePath( file1.getCanonicalPath(), removePath );
String fileEntry2 = removePath( file2.getCanonicalPath(), removePath );
log.info( "handleCompare {} - {}", fileEntry1, fileEntry2 );
if ( file1.isDirectory() && file1.isDirectory() ) {
if ( file1.isDirectory() && file2.isDirectory() ) {
report.println( "# directory : "+fileEntry1 );
for ( File file : file1.listFiles() ) {
if ( file.isDirectory() ) {
report.println();
}
this.handleCompareWork( removePath, file, new File( file2, file.getName() ), params, report );
}
} else if ( file1.isDirectory() || file1.isDirectory() ) {
} else if ( file1.isDirectory() || file2.isDirectory() ) {
throw new ConfigException( "Only one is directory : "+file1+"("+file1.isDirectory()+"), : "+file2+"("+file2.isDirectory()+")" );
} else {
report.print( "- "+fileEntry1+" -> "+fileEntry2+" : " );
Expand Down

0 comments on commit 55f7fa0

Please sign in to comment.