类 GlobTool
java.lang.Object
com.agentsflex.tool.commons.GlobTool
Pure Java glob implementation that doesn't require external tools. Uses Java NIO.2 for
file pattern matching and traversal.
Generated with Claude Code AI assistant.
- 作者:
- Christian Tzolov, Claude Code, Michael Yang
-
嵌套类概要
嵌套类修饰符和类型类说明static classprivate static classRecord to hold file information -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static GlobTool.Builderbuilder()private PathMatcherbuildGlobMatcher(String pattern) Build a PathMatcher from the glob patternprivate booleanisIgnoredPath(Path path) Check if a file should be ignored (common ignore patterns)private booleanmatchesPattern(Path file, Path searchPath, PathMatcher matcher) Check if a path matches the glob pattern
-
字段详细资料
-
maxDepth
-
maxResults
-
workingDirectory
-
-
构造器详细资料
-
GlobTool
Constructor with configurable parameters.- 参数:
maxDepth- Maximum directory traversal depth to prevent infinite recursion (default: 100)maxResults- Maximum number of results to return (default: 1000)workingDirectory- The working directory to use when path is not specified. If null, defaults to current JVM working directory.
-
-
方法详细资料
-
glob
-
buildGlobMatcher
Build a PathMatcher from the glob pattern -
matchesPattern
Check if a path matches the glob pattern -
isIgnoredPath
Check if a file should be ignored (common ignore patterns) -
builder
-