Skip remote directory listing

Advertisement

lurker
Joined:
Posts:
2

Skip remote directory listing

Hi!

I'm using script to upload files, it looks like this:

open ftp://.....
option confirm off
put "D:\test.txt" /test.txt
exit

So nothing special here, just connect and upload file.
The problem is that WinSCP always executes LIST command before file upload.
Remote directory contains 70000+ files and my download speed with that server is very low (but upload is very fast).
So in order to upload 1 tiny file my script have to wait for a few minutes to get the unnecessary directory listing.

Is there any way to skip that step?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: Skip remote directory listing

Make sure you are using the latest version of WinSCP.

If you are already, and still get this behavior, please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. 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.

Reply with quote

Advertisement

You can post new topics in this forum