[Python-Dev] Path object design (original) (raw)
Fredrik Lundh fredrik at pythonware.com
Sat Nov 4 19:33:10 CET 2006
- Previous message: [Python-Dev] Path object design
- Next message: [Python-Dev] Path object design
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steve Holden wrote:
Ah, but how do you know when that's wrong? At least under ftp:// your root is often a mid-level directory until you change up out of it. http:// will tend to treat the targets as roots, but I don't know that there's any requirement for a /.. to be meaningless (even if it often is).
I'm darned if I know. I simply know that it isn't right for http resources.
the URI specification disagrees; an URI that starts with "../" is per- fectly legal, and the specification explicitly states how it should be interpreted.
(it's important to realize that "urijoin" produces equivalent URI:s, not file names)
- Previous message: [Python-Dev] Path object design
- Next message: [Python-Dev] Path object design
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]