getting files with getfiles method - WeOnlyDo Discussion board

getting files with getfiles method (wodFtpDLX / wodFtpDLX.NET)

by scot, Tuesday, January 21, 2014, 20:22 (3741 days ago) @ scot

what's really odd
is I tried to swap the deletfile, to deletefiles
and, just delete all of them
I'm getting an pb error on the function
when it hits the deletefiles
any ideas?


string local_send, remote_send
string in_dir, out_dir
long tot_files, i

If ErrorCode <> 0 Then
messagebox('ERROR','UNABLE TO CONNECT TO FTP SITE, CONTACT SUPPORT - ERROR CODE = ' + string(errorcode))
close(parent)
return
end if

nbr_ftp_files = 1

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

ole_ftp.object.deletefiles(out_dir )


Complete thread: