Answers for "python create valid filename from string"

0

python create valid filename from string

def cleanFilename(sourcestring,  removestring =" %:/,.\\[]<>*?"):
    #remove the undesireable characters
    return ''.join([c for c in sourcestring if c not in removestring])



################################################################
Posted by: Guest on April-18-2022

Code answers related to "python create valid filename from string"

Python Answers by Framework

Browse Popular Code Answers by Language