Topic "SynchronizeDirectories transfer speed limit"

Author Message
gaberad
[View user's profile]

Joined: 2013-07-16
Posts: 2
Is it possible to set the transfer speed limit for synchronizing directories using the .net assembly?

In the output it looks like it's running the synchronize scripting command, which has the -speed switch. Is it possible to add the switch to the command somehow, or is it not implemented?

Cheers
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
This is not supported with .NET assembly yet. But you can easily add it as the assembly is open source.
See similar example:
https://winscp.net/forum/viewtopic.php?t=12452

Anyway, this request has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1019
gaberad
[View user's profile]

Joined: 2013-07-16
Posts: 2
Ah, I didn't know the source was available for the assembly.

I've attached how I implemented it. Added an int property called TransferSpeed, setting it as zero when initializing the TransferOptions, then later if TransferSpeed is greater than zero it will add the switch.
TransferOptions.cs (2.73 KB) [Download]

Description: (none)

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