Add support for env variables with SFTP client.
This relates to and closes this issue: https://github.com/mscdex/ssh2/issues/1433
I basically saw how this was implemented in the exec() method in client.js and did a similar implementation.
I seems that it might be better to add an additional parameter to the sftp() method, i.e. in client.js it would appear as sftp(env, cb), I wasn't entirely sure, what do you think? Thanks!
@mscdex we also would like to have such a solution. May we expedite this one please? Thanks
I seems that it might be better to add an additional parameter to the sftp() method, i.e. in
client.jsit would appear assftp(env, cb)
That would be the preferred approach.
@mscdex thanks for the help, I did the changes. If it looks okay, I'll have a look at updating the docs.
All that's needed now is a unit test. You'll probably have to use one similar to the last one in the SFTP test script to verify the environment is being sent properly before starting the subsystem.
@mscdex so this look okay right? Would you be able to include it in the next release?
@mscdex I'd also be interested in this solution. Anything that can be done to support this / move this forward?
Is there anything we could do, to speed this up?
Yea, I really need this ASAP , so if we can help you somehow to speed the process let us know
@mscdex it's been quite a while since this is open, would you able to at least give some pointers on when you plan to work this project? thanks!
Is this repo still alive @mscdex ? Is there someone else that could approve merge requests?
Landed in https://github.com/mscdex/ssh2/commit/c19a821454a9034824425a7d6cc74991021d377e.