[Python-Dev] Can ftp url start with file:// ? (original) (raw)
Steven D'Aprano steve at pearwood.info
Fri Jul 9 06:23:40 CEST 2010
- Previous message: [Python-Dev] Can ftp url start with file:// ?
- Next message: [Python-Dev] Can ftp url start with file:// ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 9 Jul 2010 01:52:32 pm Senthil Kumaran wrote:
Strictly not a Python question, but I wanted to know from the experience of others in this list.
Is this is valid ftp url? # file://ftp.example.com/blah.txt (an ftp URL) My answer is no. When we have the scheme specifically mentioned as file:// it is no point in considering it as ftp url (which should start with ftp://).
I agree. Just because the host is called ftp doesn't mean you should use the ftp protocol to get the file.
http://en.wikipedia.org/wiki/File_URI_scheme
If I go ahead with this assumption and fix a bug in stdlib, I am introducing a regression because at the moment the above is considered a ftp url.
Do you have a url for the bug report?
-- Steven D'Aprano
- Previous message: [Python-Dev] Can ftp url start with file:// ?
- Next message: [Python-Dev] Can ftp url start with file:// ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]