(self)
| 2488 | return self.at in self.root._name_set() |
| 2489 | |
| 2490 | def iterdir(self): |
| 2491 | if not self.is_dir(): |
| 2492 | raise ValueError("Can't listdir a file") |
| 2493 | subs = map(self._next, self.root.namelist()) |
| 2494 | return filter(self._is_child, subs) |
| 2495 | |
| 2496 | def __str__(self): |
| 2497 | return posixpath.join(self.root.filename, self.at) |