Topic "Avoid Truncating download of Large files"

Author Message
thematrixman
[View user's profile]

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

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?

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
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
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