deleteFilesInDirWithFilter

open fun deleteFilesInDirWithFilter(dirPath: String, filter: FileFilter): Boolean

Delete all files that satisfy the filter in directory.

Return

{@code true}: success{@code false}: fail

Parameters

dirPath

The path of directory.

filter

The filter.

open fun deleteFilesInDirWithFilter(dir: File, filter: FileFilter): Boolean

Delete all files that satisfy the filter in directory.

Return

{@code true}: success{@code false}: fail

Parameters

dir

The directory.

filter

The filter.