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.431395e-06
Marked as misclassified No
Message-id <1241358301.45.0.540754079483.issue5913@psf.upfronthosting.co.za>
In-reply-to
Content
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
raised.

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