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

Nulpum changjun.cho at gmail.com
Tue Jul 19 00:25:28 EDT 2011


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



More information about the Python-list mailing list