MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / Split

Method Split

engine/3rdparty/tinyobjloader/deps/cpplint.py:1033–1045  ·  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

1031 return fullname
1032
1033 def Split(self):
1034 """Splits the file into the directory, basename, and extension.
1035
1036 For 'chrome/browser/browser.cc', Split() would
1037 return ('chrome/browser', 'browser', '.cc')
1038
1039 Returns:
1040 A tuple of (directory, basename, extension).
1041 """
1042
1043 googlename = self.RepositoryName()
1044 project, rest = os.path.split(googlename)
1045 return (project,) + os.path.splitext(rest)
1046
1047 def BaseName(self):
1048 """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