Closed mbacicc closed 2 years ago
This is called globbing. I am ok with this been added as long as it's tested and supported on all platforms. I am always keen on avoiding regex's where ever we can. So lets start with globbing.
pathlib is prob the best library to use here: https://docs.python.org/3/library/pathlib.html#pathlib.Path.glob
It would be nice to have the possibility to do this:
Or provide a regex to find for specific files by changing this function:
https://github.com/pypa/bandersnatch/blob/8d277d3dc1bfc23fbd8b851cae73830e29fc1d26/src/bandersnatch_filter_plugins/allowlist_name.py#L107