Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ upper
Function
upper
recipes/Python/578205_Zero_Batch_Programs/recipe-578205.py:54–58 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
52
import
zero
53
54
def
upper(path):
55
root, ext = zero.os.path.splitext(path)
56
upper = ext.upper()
57
if
ext != upper:
58
zero.os.rename(path, root + upper)
59
60
if
__name__ ==
'__main__'
:
61
zero.main(upper)
Callers
2
getImage
Method · 0.85
play_game
Function · 0.85
Calls
1
rename
Method · 0.45
Tested by
no test coverage detected