pyfilesystem icon indicating copy to clipboard operation
pyfilesystem copied to clipboard

FTP issue using Windows FTP server

Open GoogleCodeExporter opened this issue 10 years ago • 2 comments

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 [email protected] on 19 Jun 2012 at 1:28

Attachments:

GoogleCodeExporter avatar Apr 11 '15 10:04 GoogleCodeExporter

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 [email protected] on 15 Dec 2012 at 12:40

GoogleCodeExporter avatar Apr 11 '15 10:04 GoogleCodeExporter

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

Original comment by [email protected] on 28 Dec 2012 at 5:46

GoogleCodeExporter avatar Apr 11 '15 10:04 GoogleCodeExporter