private ProjectFile handleDirectory ( File directory ) throws Exception { ProjectFile result = handleDatabaseInDirectory ( directory ) ; if ( result == null ) { result = handleFileInDirectory ( directory ) ; } return result ; }
We have a directory . Determine if this contains a multi - file database we understand if so process it . If it does not contain a database test each file within the directory structure to determine if it contains a file whose format we understand .