ExtractorProcessor.__call__()
does not retain the order given by the members filter
#457
Labels
bug
Report a problem that needs to be fixed
Description of the problem:
When I use an
ExtractorProcessor
(e.g.Unzip
), I would expect that if I specify a list of files i want to extract, the order of the extracted paths was retained.Instead,
ExtractorProcessor
usesos.walk(self.extract_dir)
pooch/pooch/processors.py
Line 126 in 5860444
I would like to suggest to invert the check: loop over the members (if any), and filter on the extracted files.
Also: why not use
pathlib.Path
?Example
Expected output
Actual output
System information
The text was updated successfully, but these errors were encountered: