Topic "MLST in Winscp.Net GetFiles Function"

Author Message
Dennis2901
[View user's profile]

Joined: 2014-02-06
Posts: 2
The Ftp Server is Wing. It likes MLSD and not MLST command. GetFiles issues a MLST command and Wing rejects it and cancels the session. I can't change Wing and they don't want to change it. Is there some way I can have GetFiles bypass the MLST command so the session does not get cancelled?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
WinSCP uses MLST command in exceptional situations only. If you post a session log file, we might help you avoid it.

But note that FTP server must always support both MLSD and MLST command.

You can also avoid WinSCP using both MLSD and MLST and use LIST instead:
https://winscp.net/eng/docs/ui_login_ftp
https://winscp.net/eng/docs/rawsettings
Dennis2901
[View user's profile]

Joined: 2014-02-06
Posts: 2
Here is my log with the MLST error when logging into Wing ftp server
winscp_dw.txt (2.97 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Well your does not really follow specification. It declares support for MLSD "Feature" in FEAT response.

Quote:
> 2014-05-16 11:08:27.342 FEAT
< 2014-05-16 11:08:27.357 211-Extension supported
...
< 2014-05-16 11:08:27.591 MLSD


There's no such "feature" in FTP. There's only MLST that declares support for BOTH MLST and MLSD commands, as per RFC 3659. As there are are few such FTP servers that incorrectly declare MLSD instead of MLST, WinSCP goes at least as far as to understand both MLSD and MLST "features". But no matter what feature the server declares, WinSCP interprets it as if the server supported both commands. The specification does not allow server to support one of them only.

Quoting RFC 3659, section 7.8:

Quote:
Note that there is no distinct FEAT output for MLSD. The presence of
the MLST feature indicates that both MLST and MLSD are supported.

_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License