public static List < File > getFiles ( File directory ) { Check . notNull ( directory ) ; if ( directory . isDirectory ( ) ) { final File [ ] files = directory . listFiles ( ) ; if ( files != null ) { return Arrays . asList ( files ) ; } } throw new LionEngineException ( ERROR_DIRECTORY + directory . getPath ( ) ) ; }
Get the files list from directory .