No such directory?

Robin Siebler robin.siebler at corp.palm.com
Mon Jun 10 15:58:46 EDT 2002


When I try to change into a certain directory, I get an errorm message
that states the directory doesn't exist.  The directory does exist,
however, and the listdir function shows that it exists.  What gives?

>>> os.chdir('c:\\18_510GMC1\\18_510GMC1')
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
OSError: [Errno 2] No such file or directory:
'c:\\18_510GMC1\\18_510GMC1'
>>> os.getcwd()
'c:\\18_510GMC1'
>>> os.listdir(os.getcwd())
['18_510GMC']



More information about the Python-list mailing list