(self)
| 78 | raise NotADirectoryError('MultiplexedPath only supports directories') |
| 79 | |
| 80 | def iterdir(self): |
| 81 | children = (child for path in self._paths for child in path.iterdir()) |
| 82 | by_name = operator.attrgetter('name') |
| 83 | groups = itertools.groupby(sorted(children, key=by_name), key=by_name) |
| 84 | return map(self._follow, (locs for name, locs in groups)) |
| 85 | |
| 86 | def read_bytes(self): |
| 87 | raise FileNotFoundError(f'{self} is not a file') |
no test coverage detected