m-m-m / util

Mature Modular Meta-Framework
http://m-m-m.sourceforge.net
Apache License 2.0
10 stars 5 forks source link

FileUtil: add deleteRecursive(File, FileFilter), deleteRecursive(File path, FileFilter filter), and delete(File) #216

Closed hohwille closed 7 years ago

hohwille commented 7 years ago

Currently FileUtil.deleteRecursive(File) deletes a file or directory tree recursively. However, we should also have a variante that accepts a FileFilter so for each regular File the filter is applied and the file is only deleted if accepted by the FileFilter. If all files in a directory have been deleted, the directory will also be deleted.

hohwille commented 7 years ago

Done.