os.path.isdir do not work for Foder named '2011-07-03'

Michael Hrivnak mhrivnak at hrivnak.org
Tue Jul 19 06:42:24 CEST 2011


What is the output of:

>>> os.path.exists("C:\Users\조창준\Desktop\logs\2011-07-03")

?  One possible issue here is that for some reason os.path.isdir()
can't even access the directory either because of permissions,
misinterpretation of the path, or some other reason.

Michael

2011/7/19 Nulpum <changjun.cho at gmail.com>:
> I want to make sure that folder exists.
>
> '2011-07-03' is really exists. but 'os.path.isdir' say false
>
> Does anyone know why?
>
>
>
>>>> os.path.isdir("C:\Users\조창준\Desktop\logs")
> True
>>>> os.path.isdir("C:\Users\조창준\Desktop\logs\2011-07-03")
> False
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list