Directory in Windows

custard_pie ckwiguno at gmail.com
Sat Apr 30 13:30:48 EDT 2005


Hi,..I tried to list files in a tree directory using os.path.walk. To
avoid dirnames fromm being listed i use the os.path.isdir method.
However, when isdir encounters directories that use spaces in their
name e.q My Documents it doesn;t recognize them as directories.. Is
there any solution to this,..pertaining that I want to keep the naming
of my directories?




More information about the Python-list mailing list