mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
fix: use Path.rglob instead of glob.glob for recursive file matching
This commit is contained in:
parent
fd820dbfe2
commit
5d3a60228c
1 changed files with 2 additions and 1 deletions
|
@ -1170,7 +1170,8 @@ class Commands:
|
||||||
# First collect all expanded paths
|
# First collect all expanded paths
|
||||||
for pattern in filenames:
|
for pattern in filenames:
|
||||||
expanded_pattern = expanduser(pattern)
|
expanded_pattern = expanduser(pattern)
|
||||||
expanded_paths = glob.glob(expanded_pattern, recursive=True, root_dir=self.coder.root)
|
expanded_paths = Path(self.coder.root).rglob(expanded_pattern)
|
||||||
|
|
||||||
if not expanded_paths:
|
if not expanded_paths:
|
||||||
self.io.tool_error(f"No matches found for: {pattern}")
|
self.io.tool_error(f"No matches found for: {pattern}")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue