Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Aus dem ~/bin/

View falsenamekiller.py
1 2 3 4 5 6 7 8 9 10
import os
illegal = list('''!"#$%&\'()*+,/:;<=>?@[\\]^_`{|}~ ''')
repl = "_"
for root,dir,files in os.walk(os.getcwd()):
for fi in files:
for ill in illegal:
if ill in fi:
print "found ", os.path.join(root,fi)
newname = fi.replace(ill,repl)
os.rename( os.path.join(root,fi) , os.path.join(root,newname) )

compare debian package detox

Owner

Very old, never used, nice to know thanks ツ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.