diff --git a/importlib_resources/readers.py b/importlib_resources/readers.py index 4a80a77..7c85177 100644 --- a/importlib_resources/readers.py +++ b/importlib_resources/readers.py @@ -72,6 +72,10 @@ def __init__(self, *paths): if not all(path.is_dir() for path in self._paths): raise NotADirectoryError('MultiplexedPath only supports directories') + @property + def paths(self): + return self._paths.copy() + def iterdir(self): children = (child for path in self._paths for child in path.iterdir()) by_name = operator.attrgetter('name')