Module xaos.core

Class DeleteFileVisitor

  • All Implemented Interfaces:
    FileVisitor<Path>

    public class DeleteFileVisitor
    extends SimpleFileVisitor<Path>
    A FileVisitor that will delete a file tree. Each directory will be deleted after the entries in the directory are deleted.

    Usage:

       Path root = ...
    
       Files.walkFileTree(root, new DeleteFileVisitor());
    Author:
    claudio.rosati@esss.se