Topic "Putfiles and MLSD..."

Author Message
Compusoft
[View user's profile]

Joined: 2015-07-19
Posts: 4
Hello,
I am uploading image files (.Net assembly, putfiles command) to 5 different folders.
In each folder still thousands of images exist. (I know this is a bad design but the webshop has no other options)
Each time I upload a new image an MLSD command is sent to the ftp server.
So each image is uploaded in less than a second but the MLSD command blocks for many seconds (up to 50) until next image can be uploaded...

If I use Winscp as gui - the MLSD Command can be disables when not refreshing the destination folder...

How can I disable the MLSD Command in .net assembly?

Thanks in advance (Using V574)

Sven
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Compusoft
[View user's profile]

Joined: 2015-07-19
Posts: 4
prikryl wrote:
Please attach a full session log file showing the problem (using the latest version of WinSCP).


See attached file.
I found this forum entry - hope that this problem is fixed...

http://stackoverflow.com/questions/20410967/can-i-suppress-the-mlsd-with-winscp-net-assembly

Thanks

Sven
winscplog.txt (7.04 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
No it's not fixed, it's not a bug.

I have maybe misunderstood your problem. I've though the MLSD is used before each file. If it is once for each directory, that's correct behavior.
Compusoft
[View user's profile]

Joined: 2015-07-19
Posts: 4
prikryl wrote:
No it's not fixed, it's not a bug.

I have maybe misunderstood your problem. I've though the MLSD is used before each file. If it is once for each directory, that's correct behavior.


The Problem is that I upload files to 5 different folders.
Each time when I upload to a new Folder the mlsd command is sent because it is a different Folder than the folder before.
Uploading 5 files to 5 different Folders needs about a minute to get finished.
Even if the next image is uploaded to the same 5 folders once again the mlsd command is sent after each image.
The Problem is nearly no Problem if only some files exist in Destination Folder (the mlsd command is finished very fast) - but if thousands of files exist the upload is much to slow! 1 Minute for just 5 files with each 100kb is to slow.

Any Chance to get a fixed winscp Version? The Winscp Guid doesn't send an mlsd command - here everything is all right...

Thanks again.

Sven
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
Yes, GUI uses cache when switching the directories. The scripting does not.
Though the GUI reloads the directory after the upload, the scripting does not. So in the end, it's the same (unless you turn off the automatic reload).
Compusoft
[View user's profile]

Joined: 2015-07-19
Posts: 4
prikryl wrote:
Yes, GUI uses cache when switching the directories. The scripting does not.
Though the GUI reloads the directory after the upload, the scripting does not. So in the end, it's the same (unless you turn off the automatic reload).



Thanks for your reply.
In this case your .net assembly is useless for me - When I want to have a directory listing I send the command to get it but when I want to upload a single file it is not necessary to get the directory listing. Of course I disabled the function in your GUI to verify the upload process.
As I mentioned - Uploading to a folder where nearly no file is in the problem nearly doesn't exist. But the more files in destination folder the slower gets your software.
In my case I upload a single file in less than a second but the process then needs much traffic and a long time.

Sad - but this forces me to look for an other software.

Thanks anyway.

Sven
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