listFilesInDirWithFilter

open fun listFilesInDirWithFilter(dirPath: String, filter: FileFilter): List<File>

Return the files that satisfy the filter in directory.

Doesn't traverse subdirectories

Return

the files that satisfy the filter in directory

Parameters

dirPath

The path of directory.

filter

The filter.

open fun listFilesInDirWithFilter(dir: File, filter: FileFilter): List<File>

Return the files that satisfy the filter in directory.

Doesn't traverse subdirectories

Return

the files that satisfy the filter in directory

Parameters

dir

The directory.

filter

The filter.

open fun listFilesInDirWithFilter(dirPath: String, filter: FileFilter, isRecursive: Boolean): List<File>

Return the files that satisfy the filter in directory.

Return

the files that satisfy the filter in directory

Parameters

dirPath

The path of directory.

filter

The filter.

isRecursive

True to traverse subdirectories, false otherwise.

open fun listFilesInDirWithFilter(dir: File, filter: FileFilter, isRecursive: Boolean): List<File>

Return the files that satisfy the filter in directory.

Return

the files that satisfy the filter in directory

Parameters

dir

The directory.

filter

The filter.

isRecursive

True to traverse subdirectories, false otherwise.