Return the parent Resource object for this Resource or None.
(self, codebase)
| 1507 | return self.has_parent() and parent_directory(self.path, with_trail=False) |
| 1508 | |
| 1509 | def parent(self, codebase): |
| 1510 | """ |
| 1511 | Return the parent Resource object for this Resource or None. |
| 1512 | """ |
| 1513 | parent_path = self.parent_path() |
| 1514 | return parent_path and codebase.get_resource(parent_path) |
| 1515 | |
| 1516 | def has_siblings(self, codebase): |
| 1517 | """ |
no test coverage detected