New submission from Stephen Gilbert <linux...@gmail.com>: I just ran into this using os.path.walk. I noticed it wouldn't find files inside a particular directory. In debugging, I found that the name of the directory was 'BBDO Atlanta ' os.path.walk would find the directory, but wouldn't enter it. I added a check inside my CallBack function:
if file[-1:] == ' ' and os.path.isdir(file): os.path.walk(file,CallBack,None) and the script now traverses into the directory. ---------- messages: 86418 nosy: linuxelf severity: normal status: open title: os.path.walk fails to descend into a directory whose name ends with a space versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5832> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com