Class DeletingPathVisitor

    • Constructor Detail

      • DeletingPathVisitor

        public DeletingPathVisitor​(Counters.PathCounters pathCounter,
                                   DeleteOption[] deleteOption,
                                   java.lang.String... skip)
        Constructs a new visitor that deletes files except for the files and directories explicitly given.
        Parameters:
        pathCounter - How to count visits.
        deleteOption - How deletion is handled.
        skip - The files to skip deleting.
        Since:
        2.8.0
      • DeletingPathVisitor

        public DeletingPathVisitor​(Counters.PathCounters pathCounter,
                                   java.nio.file.LinkOption[] linkOptions,
                                   DeleteOption[] deleteOption,
                                   java.lang.String... skip)
        Constructs a new visitor that deletes files except for the files and directories explicitly given.
        Parameters:
        pathCounter - How to count visits.
        linkOptions - How symbolic links are handled.
        deleteOption - How deletion is handled.
        skip - The files to skip deleting.
        Since:
        2.9.0
      • DeletingPathVisitor

        public DeletingPathVisitor​(Counters.PathCounters pathCounter,
                                   java.lang.String... skip)
        Constructs a new visitor that deletes files except for the files and directories explicitly given.
        Parameters:
        pathCounter - How to count visits.
        skip - The files to skip deleting.