Class IsExcludedDirectoryName

java.lang.Object
org.ek9lang.core.IsExcludedDirectoryName
All Implemented Interfaces:
Predicate<String>

public final class IsExcludedDirectoryName extends Object implements Predicate<String>
THE test of one directory name against ExcludedDirectories.NAMES: should a file walk skip a directory with this name? Hold one and test with it; a whole path goes through IsExcludedPath.
  • Constructor Details

    • IsExcludedDirectoryName

      public IsExcludedDirectoryName()
  • Method Details

    • test

      public boolean test(String directoryName)
      True when a directory with this name should be skipped during file walks. Returns true for names that start with . (hidden directories) or that appear in the built-in exclusion set.

      Returns false for null or empty names (defensive — root path components can produce these).

      Specified by:
      test in interface Predicate<String>