getting files with getfiles method - WeOnlyDo Discussion board

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

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

ok... but, how do I tell which method is actually finishing?
the done event will fire when the connection is established
AND.. when the deletefiles finishes
I don't want to do the same code over and over

unless I use a variable to keep track of what stage I'm in

stage = 1
getfiles


in done
if stage = 1
stage = 2
deletefiles
end


move the delete from connected to done

seems excessive


Complete thread: