mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
fix: add missing respect_gitignore parameter to _find_with_ffind method
Fixed NameError where respect_gitignore was undefined when _find_with_ffind falls back to _find_with_python. Added the parameter to method signature and updated the method call to pass it correctly.
This commit is contained in:
@@ -257,7 +257,7 @@ class FindTool(BaseTool):
|
||||
# Use ffind for fast file discovery
|
||||
matches = await self._find_with_ffind(
|
||||
pattern, root_path, type, case_sensitive, regex,
|
||||
max_depth, follow_symlinks, ignore_patterns
|
||||
max_depth, follow_symlinks, respect_gitignore, ignore_patterns
|
||||
)
|
||||
else:
|
||||
# Fall back to Python implementation
|
||||
@@ -394,6 +394,7 @@ class FindTool(BaseTool):
|
||||
regex: bool,
|
||||
max_depth: Optional[int],
|
||||
follow_symlinks: bool,
|
||||
respect_gitignore: bool,
|
||||
ignore_patterns: Set[str]) -> List[FileMatch]:
|
||||
"""Use ffind for fast file discovery."""
|
||||
matches = []
|
||||
|
||||
Reference in New Issue
Block a user