Re: SFTP file transfer and upload on server
OK, seeing you email.
You create new
Either reuse
Anyway, this is general programming issue, so it's out of scope of this forum.
You create new
Session
instance on every call to GetSFTP
, yet you connect it on the first call only (see makeConnection
parameter).
Either reuse
Session
instance across runs (preferred) or connect on every call.
Anyway, this is general programming issue, so it's out of scope of this forum.