MCPcopy Create free account
hub / github.com/apache/mesos / Split

Method Split

support/cpplint.py:1162–1174  ·  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

1160 return fullname
1161
1162 def Split(self):
1163 """Splits the file into the directory, basename, and extension.
1164
1165 For 'chrome/browser/browser.cc', Split() would
1166 return ('chrome/browser', 'browser', '.cc')
1167
1168 Returns:
1169 A tuple of (directory, basename, extension).
1170 """
1171
1172 googlename = self.RepositoryName()
1173 project, rest = os.path.split(googlename)
1174 return (project,) + os.path.splitext(rest)
1175
1176 def BaseName(self):
1177 """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