Splits the file into the directory, basename, and extension. For 'chrome/browser/browser.cc', Split() would return ('chrome/browser', 'browser', '.cc') Returns: A tuple of (directory, basename, extension).
(self)
| 1637 | return fullname |
| 1638 | |
| 1639 | def Split(self): |
| 1640 | """Splits the file into the directory, basename, and extension. |
| 1641 | |
| 1642 | For 'chrome/browser/browser.cc', Split() would |
| 1643 | return ('chrome/browser', 'browser', '.cc') |
| 1644 | |
| 1645 | Returns: |
| 1646 | A tuple of (directory, basename, extension). |
| 1647 | """ |
| 1648 | |
| 1649 | googlename = self.RepositoryName() |
| 1650 | project, rest = os.path.split(googlename) |
| 1651 | return (project,) + os.path.splitext(rest) |
| 1652 | |
| 1653 | def BaseName(self): |
| 1654 | """File base name - text after the final slash, before the final period.""" |
no test coverage detected