I'm using WinSCP .NET assembly. When I call the Session.PutFiles
method, it sends the following series of commands:
TYPE A
PASV
MLSD
TYPE A
PASV
STOR myfile
Is there a way to tell it NOT to send the MLSD
? (MLSD
requests the contents of the remote directory be sent back.) At the very least, I don't need this information so it's just wasting bandwidth. I don't even know how I would access it -- maybe WinSCP is doing something with it internally? What worries me more, though, is that I was given very specific specs about the series of FTP commands that I was supposed to send, which includes several non-standard commands, apparently the site at the other end has a customized FTP server. So I don't want an extra command to screw things up.
In the latest version, with default transfer settings, WinSCP does not use the
MLSD
command.It's used only with
OverwriteMode.Resume
orOverwriteMode.Append
to retrieve attributes of the remote file.Also, WinSCP issues the
MLSD
command once for every destination directory (not for each file).