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 lukasz.langa
Recipients Suresh.Kalkunte, georg.brandl, lukasz.langa
Date 2011-02-23.20:49:36
SpamBayes Score 1.2254142e-11
Marked as misclassified No
Message-id <1298494176.95.0.951013268412.issue11252@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2011-02-23 20:49:37lukasz.langasetrecipients: + lukasz.langa, georg.brandl, Suresh.Kalkunte
2011-02-23 20:49:36lukasz.langasetmessageid: <1298494176.95.0.951013268412.issue11252@psf.upfronthosting.co.za>
2011-02-23 20:49:36lukasz.langalinkissue11252 messages
2011-02-23 20:49:36lukasz.langacreate