Message129222
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? |
|
Date |
User |
Action |
Args |
2011-02-23 20:49:37 | lukasz.langa | set | recipients:
+ lukasz.langa, georg.brandl, Suresh.Kalkunte |
2011-02-23 20:49:36 | lukasz.langa | set | messageid: <1298494176.95.0.951013268412.issue11252@psf.upfronthosting.co.za> |
2011-02-23 20:49:36 | lukasz.langa | link | issue11252 messages |
2011-02-23 20:49:36 | lukasz.langa | create | |
|