Closed duboism closed 4 years ago
We propose to use the ftputil module which is able to parse output in both UNIX and MS formats.
Another option would be to allow the user to define parsing rules (similar to what is done with HTTPParse
in HTTPDownload
) with default to UNIX style.
Default should be basic ftp style, and why not specifying parsing rules with regexp optionnally
After thinking about it, it's a bit hard to parse FTP listings with regexp because the year is not always displayed if it's the current year. Implementation with ftputil
is rather simple.
See #10.
I think we can close this bug since PR #10 solves this.
FTPDownload.list
parses the listing according to the de facto standard for FTP servers. However some servers present the listing in a totally different manner hence they don't work withFTPDownload
.Example:
Fails:
This server use the MS output style:
Such servers a rare but supporting them should not be too difficult.