rivenz / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

FTP issue using Windows FTP server #119

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Attached are changes to ftpfs.py to fix an issue when accessing a Windows FTP 
server.

The FTP server on a windows based system had two issues:

1) An extra space was introduced in front of directory listing so the space 
based parsing broke.
    Fix: Use lstrip rather than removing the single space.
2) The MLST options were capitalized and case sensitive so that no data was 
being returned on default string.
    Fix: Use the data returned from features lookup to determine the named values to request.

GitHub https://github.com/lightkeeper/lspyfilesystem/tree/lsmaster

Original issue reported on code.google.com by rleftw...@lightkeeper.com on 19 Jun 2012 at 1:28

Attachments:

GoogleCodeExporter commented 9 years ago
Your changes look good, but I've also used this MLST related code in other 
projects - do you happen to know the name of the FTP server software that was 
being used, so I can do my own testing? It seems to be breaking the RFC 3659 
specs :(

Original comment by gc...@loowis.durge.org on 15 Dec 2012 at 12:40

GoogleCodeExporter commented 9 years ago
It was some time ago now, but I believe it was Serv-U FTP Server v14.0

Original comment by rleftw...@lightkeeper.com on 28 Dec 2012 at 5:46