Part of bzrlib.osutils View In Hierarchy
|Method||read_dir||Read a single directory from a non-utf8 file system.|
top, and the abspath element in the output are unicode, all other paths are utf8. Local disk IO is done via unicode calls to listdir etc.
This is currently the fallback code path when the filesystem encoding is not UTF-8. It may be better to implement an alternative so that we can safely handle paths that are not properly decodable in the current encoding.
See DirReader.read_dir for details.