On Mon, 10 Jun 2002, Robin Siebler wrote:
> 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']
Take another look. The output from listdir() is giving you a different
name (shorter by one character) than the one you're using as the last
part of your chdir() call's argument.
--
Bob Kline
mailto:[EMAIL PROTECTED]
http://www.rksystems.com
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython