(path)
| 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) |
| 26 | if ext != ext.upper(): |
| 27 | zero.os.rename(path, zero.os.path.join(head, root + '.' + ext.upper())) |
| 28 | |
| 29 | def parts(path): |
| 30 | head, tail = zero.os.path.split(path) |