MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / Split

Method Split

steps/cpplint.py:1639–1651  ·  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

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."""

Callers 3

BaseNameMethod · 0.95
ExtensionMethod · 0.95
NoExtensionMethod · 0.95

Calls 1

RepositoryNameMethod · 0.95

Tested by

no test coverage detected