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.
Currently
FileUtil.deleteRecursive(File)
deletes a file or directory tree recursively. However, we should also have a variante that accepts aFileFilter
so for each regularFile
the filter is applied and the file is only deleted if accepted by theFileFilter
. If all files in a directory have been deleted, the directory will also be deleted.