Skip to content

Commit

Permalink
Merge pull request #18 from yamaton/filter-execs
Browse files Browse the repository at this point in the history
Exclude executables that start with '.' or '_'
  • Loading branch information
yamaton authored Nov 12, 2023
2 parents 44d68ed + 00083c4 commit ffa28e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions condax/conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ def is_good(p: Union[str, Path]) -> bool:
p = to_path(p)
res = (p.parent.name in ("bin", "sbin", "scripts", "Scripts")) and (
p.suffix not in EXCLUCDED_FILE_EXTENSIONS
) and (
not p.name.startswith(".") and not p.name.startswith("_")
)
return res

Expand Down

0 comments on commit ffa28e9

Please sign in to comment.