Skip to content

Instantly share code, notes, and snippets.

@daeken
Created March 13, 2013 07:31
Show Gist options
  • Select an option

  • Save daeken/5149992 to your computer and use it in GitHub Desktop.

Select an option

Save daeken/5149992 to your computer and use it in GitHub Desktop.
from os.path import isfile
from glob import glob
for fn in glob('*'):
if not isfile(fn):
continue
try:
file(fn, 'rb').read().decode('utf-8')
except UnicodeDecodeError:
print fn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment