|Subject:||Net::SSH2 ->close on sftp or file?|
|Date:||Fri, 9 Sep 2016 14:38:45 -0400|
|From:||Michael Carey <email@example.com>|
In the examples for libssh2, after a remote file is open and the IO loop is finished there is a call to libssh_sftp_close() and then libssh_sftp_shutdown(). This is at least syntactically analogous to local file IO where a file is closed at the end.
Questions: Where are these functions accessible in Net::SSH2? How can I insure a file I am writing to gets closed if, for instance, I want to go on to do other things with the Net::SSH2 object after writing a remote file?