private static ArrayList < File > getContentsInDirectoryTree ( File directory , String includeMask , boolean returnFiles , boolean returnDirs ) { return getContentsInDirectoryTree ( directory , new FileFilterRuleSet ( directory . getPath ( ) ) . setIncludeFilesWithNameMask ( includeMask ) , returnFiles , returnDirs ) ; }
Retrieves contents from a directory and its subdirectories matching a given mask .