A list of the final component's suffixes, if any. These include the leading periods. For example: ['.tar', '.gz']
(self)
| 112 | |
| 113 | @property |
| 114 | def suffixes(self): |
| 115 | """ |
| 116 | A list of the final component's suffixes, if any. |
| 117 | |
| 118 | These include the leading periods. For example: ['.tar', '.gz'] |
| 119 | """ |
| 120 | split = self.parser.splitext |
| 121 | stem, suffix = split(self.name) |
| 122 | suffixes = [] |
| 123 | while suffix: |
| 124 | suffixes.append(suffix) |
| 125 | stem, suffix = split(stem) |
| 126 | return suffixes[::-1] |
| 127 | |
| 128 | @property |
| 129 | def stem(self): |