MCPcopy Index your code
hub / github.com/bugy/script-server / _split_first_parent

Method _split_first_parent

src/utils/file_utils.py:320–325  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

318
319 @staticmethod
320 def _split_first_parent(path):
321 split = split_all(path)
322 if len(split) == 1:
323 return split[0], None
324
325 return split[0], os.path.join(*split[1:])
326
327 @staticmethod
328 def _matches_recursive_blob(path, pattern):

Callers 1

Calls 1

split_allFunction · 0.85

Tested by

no test coverage detected