This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients ezio.melotti
Date 2009-05-03.13:44:58
SpamBayes Score 7.43139e-06
Marked as misclassified No
Message-id <>
On Windows, with Python2/Python3, os.listdir('')/os.listdir(b'') list
the content of the current working directory and
os.listdir(u'')/os.listdir('') the content of C:\.

On Linux the error "OSError: [Errno 2] No such file or directory: ''" is

I also noticed that os.listdir('C:') (without the \) lists the content
of the cwd too.
Date User Action Args
2009-05-03 13:45:02ezio.melottisetrecipients: + ezio.melotti
2009-05-03 13:45:01ezio.melottisetmessageid: <>
2009-05-03 13:44:59ezio.melottilinkissue5913 messages
2009-05-03 13:44:58ezio.melotticreate