how to add illegal characters to paths python

48

invalid = '<>:"/\|?* '

for char in invalid:
	filename = filename.replace(char, '')
	
print filename

Comments

Submit
0 Comments