MCPcopy 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

52import zero
53
54def 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
60if __name__ == '__main__':
61 zero.main(upper)

Callers 2

getImageMethod · 0.85
play_gameFunction · 0.85

Calls 1

renameMethod · 0.45

Tested by

no test coverage detected