pyfilesystem
pyfilesystem copied to clipboard
FTP issue using Windows FTP server
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:
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
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