Comment 14 for bug 77657

Revision history for this message
Simon (simonjwiles) wrote :

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