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

Function lower

recipes/Python/578205_Zero_Batch_Programs/recipe-578205.py:111–115  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

109import zero
110
111def lower(path):
112 root, ext = zero.os.path.splitext(path)
113 lower = ext.lower()
114 if ext != lower:
115 zero.os.rename(path, root + lower)
116
117if __name__ == '__main__':
118 zero.main(lower)

Callers 8

normFunction · 0.85
getImageMethod · 0.85
recipe-576661.pyFile · 0.85
atributesFunction · 0.85
__checkModeMethod · 0.85
VowelFunction · 0.85
ConsonantFunction · 0.85
Anagrams_searchFunction · 0.85

Calls 2

lowerMethod · 0.45
renameMethod · 0.45

Tested by

no test coverage detected