Tag: walkFileTree
-
How to delete unwanted files in a folder recursively using Java’s FileVisitor?
Java 7 came up with a new package for dealing with file systems : java.nio.file. It provides a better interface compared to the previous versions to deal with files and directories. One such feature is to traverse all the sub folders and files inside a folder recursively and perform any file operations on them. To…