Replaces %20 with spaces in file names. Useful for files from WebVista.

import os

for name in os.listdir('.'):
    newname = name.replace('%20', ' ')
    if name != newname:
        os.rename(name, newname)
Advertisements