for anyone with the same problem as me, here is a small quick 'n' dirty script I just wrote to determine potentially problematic files in the tree:
#!/usr/bin/env python #-*- coding:utf-8 -*-
import os
def loopfiles(root=os.curdir): for path, dirs, files in os.walk(os.path.abspath(root)): for filename in files: yield os.path.join(path, filename)
if __name__ == "__main__": for f in loopfiles(): try: u = f.encode('utf8') except: print f
for anyone with the same problem as me, here is a small quick 'n' dirty script I just wrote to determine potentially problematic files in the tree:
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import os
def loopfiles( root=os. curdir) : os.path. abspath( root)):
for path, dirs, files in os.walk(
for filename in files:
yield os.path.join(path, filename)
if __name__ == "__main__":
for f in loopfiles():
try:
u = f.encode('utf8')
except:
print f