Message45375
I would be nice to have a function to do the exact
opposite of os.path.join, something like an
os.path.splitall or fullsplit.
Rationale:
Currently, on Windows, using os.path.split produce the
following result:
os.path.split('Z:/xyz') => ('Z:/', 'xyz')
It exceptionaly keep the \ after the drive. This
exception makes str.split incompatible with
os.path.join that is expecting the \.
Spliting fully a path is useful when transforming
absolute paths to relative paths. I could also be nice
to have a function to do that in os.path.
|
|
Date |
User |
Action |
Args |
2007-08-23 15:32:20 | admin | link | issue894936 messages |
2007-08-23 15:32:20 | admin | create | |
|