Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
19
def
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
24
def
ext_upper(path):
25
head, root, ext = parts(path)
Callers
nothing calls this directly
Calls
4
parts
Function · 0.85
lower
Method · 0.45
rename
Method · 0.45
join
Method · 0.45
Tested by
no test coverage detected