fix: Impossible to /read-only from another working directory

This commit is contained in:
Konstantin L 2024-10-23 10:40:25 +02:00
parent dde2dee304
commit ba9fdaa755
2 changed files with 38 additions and 1 deletions

View file

@ -1170,7 +1170,7 @@ class Commands:
# First collect all expanded paths
for pattern in filenames:
expanded_pattern = expanduser(pattern)
expanded_paths = glob.glob(expanded_pattern, recursive=True)
expanded_paths = glob.glob(expanded_pattern, recursive=True, root_dir=self.coder.root)
if not expanded_paths:
self.io.tool_error(f"No matches found for: {pattern}")
else: