mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
fix: Append trailing slash for directory paths in roots_to_watch filtering
This commit is contained in:
parent
da9ba0a26a
commit
a65aecaf74
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class FileWatcher:
|
||||||
roots_to_watch = [
|
roots_to_watch = [
|
||||||
str(path)
|
str(path)
|
||||||
for path in self.root.iterdir()
|
for path in self.root.iterdir()
|
||||||
if not self.gitignore_spec.match_file(str(path.relative_to(self.root)))
|
if not self.gitignore_spec.match_file(str(path.relative_to(self.root)) + ("/" if path.is_dir() else ""))
|
||||||
]
|
]
|
||||||
# Fallback to watching root if all top-level items are filtered out
|
# Fallback to watching root if all top-level items are filtered out
|
||||||
if not roots_to_watch:
|
if not roots_to_watch:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue