Łukasz Langa <[email protected]> added the comment:
OK, now I know more about glob than I ever wanted to! :) Basically it comes
down to this:
unix>>> os.path.split('\\')
('', '\\')
win32>>> os.path.split('\\')
('\\', '')
This is why \ is recognized as the root directory on Win32 and as a
non-existent file on Unix.
In case of / both Unix and Win32 treat it as a valid directory separator so
`os.path.split('/')` returns `('/', '')`. This is why / is recognized as the
root directory on both systems.
Does this answer your questions?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11252>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com