filtered Walk
fun File.filteredWalk(filters: List<String>, filterType: FilterType = FilterType.CONTAINS, direction: FileWalkDirection = FileWalkDirection.TOP_DOWN, recursive: Boolean = true): MutableList<File>
Walk this directory and return all file-objects which match the specified filter-type using the passed list of filters.
Return
All files inside this directory which matched the given filters.
Author
Griefed
Parameters
filters
List of Strings to use for filtering
filter Type
Whether to filter by FilterType.CONTAINS (default), FilterType.ENDS_WITH or FilterType.STARTS_WITH.
direction
The direction in which to walk the directory. Default is FileWalkDirection.TOP_DOWN.