Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Avoid Truncating download of Large files

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?
thematrixman

Avoid Truncating download of Large files

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