Message87045
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. |
|
Date |
User |
Action |
Args |
2009-05-03 13:45:02 | ezio.melotti | set | recipients:
+ ezio.melotti |
2009-05-03 13:45:01 | ezio.melotti | set | messageid: <1241358301.45.0.540754079483.issue5913@psf.upfronthosting.co.za> |
2009-05-03 13:44:59 | ezio.melotti | link | issue5913 messages |
2009-05-03 13:44:58 | ezio.melotti | create | |
|