Topic "Avoid Truncating download of Large files"

Author Message
[View user's profile]

Joined: 2014-11-11
Posts: 1
Location: Canada

I use the following script to download to local dir.

option batch on
option confirm off
open sftpsite -timeout=999
option transfer binary
cd /home/Large_File/
get L*.csv G:\Large_File -Delete -neweronly

How would you script/code in order to avoid downloading locally a partial file ? I have huge file on sFTP (1-2 GB). It takes about 7-8minutes daily to upload the files.

I want to execute my script only when the download is completed. How would I approach this problem?

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27082
Location: Prague, Czechia
Sorry, I do not understand the problem.

You mix upload and download. Is there any real problem you are facing? Or are you just trying to avoid some potential problem?
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License