Topic "Add ability to specify X number of file to be transferred"

Author Message
IronRod

Guest


It would be very helpful if there was an option to allow specifying a transfer of a maximum number of files. Something like "get -n:NNNN -delete *"

We use WinSCP to transfer incoming files from one server to another server for processing. This works well but it means that WinSCP runs (sometimes a very long time) until it has exhausted the incoming files; i.e., it has reached the point of exceeding the incoming feed. On these long-running sessions, the log files can grow quite huge and it would be more helpful and manageable if the session could be broken into smaller chunks by limiting the number of files it will retrieve.

The alternative is to do a two-pass script where WinSCP first gets the list of files, trims it to the desired number, and then does another WinSCP to transfer the files based upon the list. Of course, this is even uglier because in both cases, WinSCP does its own LS of all the available files in order to get the list of files to determine how to proceed. So, in effect, it is getting the file list three times.

If a limit could be specified, then it simplifies the operation. Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
Thanks for your suggestion.
Will consider this.

Meanwhile, note that WinSCP 5.10.x can rotate a session log file.
https://winscp.net/tracker/show_bug.cgi?id=18
Advertisements

You can post new topics in this forum






Search

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