MCPcopy Create free account
hub / github.com/alibaba/GraphScope / Split

Method Split

analytical_engine/misc/cpplint.py:1628–1640  ·  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

1626 return fullname
1627
1628 def Split(self):
1629 """Splits the file into the directory, basename, and extension.
1630
1631 For 'chrome/browser/browser.cc', Split() would
1632 return ('chrome/browser', 'browser', '.cc')
1633
1634 Returns:
1635 A tuple of (directory, basename, extension).
1636 """
1637
1638 googlename = self.RepositoryName()
1639 project, rest = os.path.split(googlename)
1640 return (project,) + os.path.splitext(rest)
1641
1642 def BaseName(self):
1643 """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.80

Tested by

no test coverage detected