[issue5832] os.path.walk fails to descend into a directory whose name ends with a space

2009-04-24 Thread Peter Otten

Peter Otten <__pete...@web.de> added the comment:

Is "BBDO Atlanta " a symbolic link?. These are skipped by 
os.path.walk(). (The behaviour of os.walk() can be specified with the 
followsymlinks argument.)

--
nosy: +potten

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5832] os.path.walk fails to descend into a directory whose name ends with a space

2009-04-24 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

os.path.walk is deprecated. You should use os.walk.

--
nosy: +benjamin.peterson
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5832] os.path.walk fails to descend into a directory whose name ends with a space

2009-04-24 Thread Stephen Gilbert

New submission from Stephen Gilbert :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com