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;
    }
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.

@param pFile
to be checked
@param pPaths
containing the elements to be checked against
@return -1 if less folders are there, 0 if the structure is equal to
the one expected, 1 if the structure has more folders