Path separator
John A Meinel
john at arbash-meinel.com
Sun Nov 13 19:54:20 GMT 2005
Robert Collins wrote:
> On Fri, 2005-10-28 at 17:25 -0500, John A Meinel wrote:
>> I'm trying to go through the code and do some cleanup stuff for windows.
>> One of the things I'm trying to do is update the path code so that it
>> always uses forward slashes internally.
>> Part of this is Robert's desire that all paths internally are considered
>> url encoded.
>
> Eep! Thats not my desire. My desire was that all paths are '/' separated
> between directories.
>
> The -only- area that url encoding is relevant is at the Transport
> boundary.
>
> Rob
>
Okay. It still means that we want all of the paths to be '/' separated
internally. Which means that we want to stop using "os.path.join",
perhaps creating a osutils.path_join() function to replace it. The nice
thing about "os.path.join" is that it collapses a lot of things, so
join('path/', 'subdir') becomes 'path/subdir' rather than 'path//subdir'.
I'm thinking possibly to just use the native os.path.join, and then
replace '\' with '/' in the windows version.
(windows version also has to deal with multiple roots, c: vs d:, etc)
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051113/9f438a46/attachment.pgp
More information about the bazaar
mailing list