problem with unicode chars in filenames
Created by: eratosthene
Copied files over via ssh from Mac. When trying to run sync, get an exception on line 189 when it hits a unicode-named file:
185 for dirpath, dirnames, filenames in os.walk(basepath): 186 if len(filenames)>0: 187 rpath = dirpath[len(basepath+os.sep):].encode(encoding='UTF-8') 188 for filename in filenames: 189 fpath=os.path.join(rpath,filename.encode(encoding='UTF-8')) 190 apath = os.path.join(dirpath.encode(encoding='UTF-8'),filename.encode(encoding='UTF-8'))