Skip to content

Commit

Permalink
Attempt to fix linux test
Browse files Browse the repository at this point in the history
  • Loading branch information
niradar committed Jun 19, 2024
1 parent fff6255 commit 754bf7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions duplicate_files_in_folders/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def is_allowed_path(self, path: str | Path) -> bool:
# resolve all path parents
path_parents = [p.resolve() for p in path.parents]

logger.debug(f"path: {path}, path_parents: {path_parents}, allowed_dirs: {self.allowed_dirs}")

# True if the path is in any of the allowed directories
return any(path == allowed_dir or allowed_dir in path_parents for allowed_dir in self.allowed_dirs)

Expand Down

0 comments on commit 754bf7b

Please sign in to comment.