How to change last letter of filename to lowercase if it is a letter?

Posted by Robert Buckley on Stack Overflow See other posts from Stack Overflow or by Robert Buckley
Published on 2011-11-29T17:22:47Z Indexed on 2011/11/29 17:50 UTC
Read the original article Hit count: 196

Filed under:
|
|

I have been given data which cannot be interpreted by my software unless it has a lowercase letter at the end. The data was delivered with an uppercase letter at the end.

Somehow I need to first recursively loop through all folders and find whether the filename ends with a letter and then change it to lowercase.

I think python could do this, but I don´t know how,. Any help would be great!

yours, Rob

© Stack Overflow or respective owner

Related posts about python

Related posts about change