pulling all files, loopitem doesn't seem to limit - WeOnlyDo Discussion board

pulling all files, loopitem doesn't seem to limit (wodFtpDLX / wodFtpDLX.NET)

by scots, Thursday, January 30, 2014, 20:07 (3950 days ago)

Hi
I'm trying to only pull certain files from a site
so, I'm executing, the section below in the connected event

in_dir = capp_directory + 'jpmc\import\'
out_dir = '/Outbound/Encrypted/'
ole_ftp.object.getfiles(in_dir, out_dir, 1 )


then, I'm trying to limit what's pulled in the loopitem

if (match(remotefile,'DOCCTS.EFS.ACK2') = true) then
file_array[nbr_ftp_files] = remotefile
nbr_ftp_files = nbr_ftp_files + 1
Skip = false
else
skip = true
end if


It seems to be recording the proper files in the file_array
but, I'm still getting ALL the files downloaded
to the in_dir
Am I doing something wrong here?
I'm doing this in powerbuilder, and I have everything else working except this


Complete thread: