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

Function ext_lower

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

Source from the content-addressed store, hash-verified

17 zero.main(mode)
18
19def ext_lower(path):
20 head, root, ext = parts(path)
21 if ext != ext.lower():
22 zero.os.rename(path, zero.os.path.join(head, root + '.' + ext.lower()))
23
24def ext_upper(path):
25 head, root, ext = parts(path)

Callers

nothing calls this directly

Calls 4

partsFunction · 0.85
lowerMethod · 0.45
renameMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected