public class RecursiveDeleteVisitor extends SimpleFileVisitor<Path>
Constructor and Description |
---|
RecursiveDeleteVisitor() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteRecursively(Path p) |
FileVisitResult |
postVisitDirectory(Path dir,
IOException exc) |
FileVisitResult |
visitFile(Path file,
BasicFileAttributes attrs) |
preVisitDirectory, visitFileFailed
public static void deleteRecursively(Path p) throws IOException
IOException
public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException
postVisitDirectory
in interface FileVisitor<Path>
postVisitDirectory
in class SimpleFileVisitor<Path>
IOException
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
visitFile
in interface FileVisitor<Path>
visitFile
in class SimpleFileVisitor<Path>
IOException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.