MCPcopy
hub / github.com/bugy/script-server / split_all

Function split_all

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

Source from the content-addressed store, hash-verified

162
163
164def split_all(path):
165 result = []
166
167 head = path
168 while head and (not is_root(head)):
169 (head, tail) = os.path.split(head)
170 if tail:
171 result.append(tail)
172
173 result.reverse()
174 return result
175
176
177def to_filename(txt):

Callers 1

_split_first_parentMethod · 0.85

Calls 2

is_rootFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected