getting files with getfiles method - WeOnlyDo Discussion board

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

by scot, Tuesday, January 21, 2014, 21:14 (3742 days ago) @ wodDrazen

it seems like getfiles, or deletefiles work fine by themselves
but, when I try to do both... is when I get a powerbuilder error message


error #35
error calling external object function deletefiles at line 18
in the connected event of object ole_ftp of w_import_jpmc_trans
line 18 in script
which is the deletefiles line


if I comment out the getfiles, the deletefiles works
doesn't make much sense.

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


ole_ftp.object.deletefiles(out_dir, 1 )


Complete thread: