@ NonNull public static File [ ] listAllFiles ( File directory ) { if ( directory == null ) { return new File [ 0 ] ; } File [ ] files = directory . listFiles ( ) ; return files != null ? files : new File [ 0 ] ; }
Return list of all files in the directory .