MCPcopy Create free account
hub / github.com/ActiveState/code / parts

Function parts

recipes/Python/510388_Extention_Editor/recipe-510388.py:29–32  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

27 zero.os.rename(path, zero.os.path.join(head, root + '.' + ext.upper()))
28
29def parts(path):
30 head, tail = zero.os.path.split(path)
31 split = tail.rsplit('.', 1)
32 return head, split[0], split[1] if len(split) > 1 else ''
33
34if __name__ == '__main__':
35 main()

Callers 2

ext_lowerFunction · 0.85
ext_upperFunction · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected