listFilesInDir

open fun listFilesInDir(dirPath: String): List<File>

Return the files in directory.

Doesn't traverse subdirectories

Return

the files in directory

Parameters

dirPath

The path of directory.

open fun listFilesInDir(dir: File): List<File>

Return the files in directory.

Doesn't traverse subdirectories

Return

the files in directory

Parameters

dir

The directory.

open fun listFilesInDir(dirPath: String, isRecursive: Boolean): List<File>

Return the files in directory.

Return

the files in directory

Parameters

dirPath

The path of directory.

isRecursive

True to traverse subdirectories, false otherwise.

open fun listFilesInDir(dir: File, isRecursive: Boolean): List<File>

Return the files in directory.

Return

the files in directory

Parameters

dir

The directory.

isRecursive

True to traverse subdirectories, false otherwise.