MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / Split

Method Split

src/tests/coding/cpplint.py:1624–1636  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1622 return fullname
1623
1624 def Split(self):
1625 """Splits the file into the directory, basename, and extension.
1626
1627 For 'chrome/browser/browser.cc', Split() would
1628 return ('chrome/browser', 'browser', '.cc')
1629
1630 Returns:
1631 A tuple of (directory, basename, extension).
1632 """
1633
1634 googlename = self.RepositoryName()
1635 project, rest = os.path.split(googlename)
1636 return (project,) + os.path.splitext(rest)
1637
1638 def BaseName(self):
1639 """File base name - text after the final slash, before the final period."""

Callers 3

BaseNameMethod · 0.95
ExtensionMethod · 0.95
NoExtensionMethod · 0.95

Calls 2

RepositoryNameMethod · 0.95
splitMethod · 0.45

Tested by

no test coverage detected