A list of the final component's suffixes, if any. These include the leading periods. For example: ['.tar', '.gz']
(self)
| 468 | |
| 469 | @property |
| 470 | def suffixes(self): |
| 471 | """ |
| 472 | A list of the final component's suffixes, if any. |
| 473 | |
| 474 | These include the leading periods. For example: ['.tar', '.gz'] |
| 475 | """ |
| 476 | return ['.' + ext for ext in self.name.lstrip('.').split('.')[1:]] |
| 477 | |
| 478 | def relative_to(self, other, *, walk_up=False): |
| 479 | """Return the relative path to another path identified by the passed |