Class IfNot

    • Method Detail

      • accept

        public boolean accept​(Path baseDir,
                              Path relativePath,
                              BasicFileAttributes attrs)
        Description copied from interface: PathCondition
        Returns true if the specified candidate path should be deleted, false otherwise.
        Specified by:
        accept in interface PathCondition
        Parameters:
        baseDir - the directory from where to start scanning for deletion candidate files
        relativePath - the candidate for deletion. This path is relative to the baseDir.
        attrs - attributes of the candidate path
        Returns:
        whether the candidate path should be deleted
      • createNotCondition

        @PluginFactory
        public static IfNot createNotCondition​(@PluginElement("PathConditions")
                                               PathCondition condition)
        Create an IfNot PathCondition.
        Parameters:
        condition - The condition to negate.
        Returns:
        An IfNot PathCondition.