Topic "Downloading contents of folder is not getting completed"

Author Message
pturner
[View user's profile]

Joined: 2012-05-01
Posts: 6
I have the code within SSIS script task to pull the contents of a remote folder to the local drive. when the script task is running, it completes downloading one file then continues on to the next line of code before the rest is finished downloading. I am going to guess that I need to stick the getfiles() into a while loop and download each file one by one. Is there a way for the script to wait for all the files to finish downloading?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Session.GetFiles can download whole directory, you do not have to use a loop.
Please set SessionLogFile and post the log file.
_________________
Martin Prikryl
pturner
[View user's profile]

Joined: 2012-05-01
Posts: 6
I had to use a loop anyway for how I am using WinSCP with our setup.
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