public static int compareStructure ( final File pFile , IConfigurationPath [ ] pPaths ) { int existing = 0 ; for ( final IConfigurationPath path : pPaths ) { final File currentFile = new File ( pFile , path . getFile ( ) . getName ( ) ) ; if ( currentFile . exists ( ) ) { existing ++ ; } } return existing - pPaths . length ; }
Checking a structure in a folder to be equal with the data in this enum .