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