Like os.path.splitext, but takes off .tar, too
(self, the_path)
| 353 | return the_path |
| 354 | |
| 355 | def splitext(self, the_path): |
| 356 | """ |
| 357 | Like os.path.splitext, but takes off .tar, too |
| 358 | """ |
| 359 | base, ext = posixpath.splitext(the_path) |
| 360 | if base.lower().endswith(".tar"): |
| 361 | ext = base[-4:] + ext |
| 362 | base = base[:-4] |
| 363 | return base, ext |
| 364 | |
| 365 | def extract(self, filename): |
| 366 | """ |
no outgoing calls