You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is info from stacktrace: net.schmizz.sshj.sftp.SFTPException: No such file at net.schmizz.sshj.sftp.Response.error(Response.java:140) at net.schmizz.sshj.sftp.Response.ensureStatusIs(Response.java:133) at net.schmizz.sshj.sftp.Response.ensureStatusPacketIsOK(Response.java:125) at net.schmizz.sshj.sftp.RemoteResource.close(RemoteResource.java:55)
The text was updated successfully, but these errors were encountered:
@exceptionfactory you are right, thank you. Is there any correct way to find out weather RemoteFile/ RemoteFileInput(Output)Stream has been closed correctly? I've looked through the repo and could not find anything that would be helpful in such situation.
You're welcome @elwira-zimoch. As both RemoteFile and RemoteFileInputStream implement or extend standard interfaces (Closeable and InputStream), the best approach is to follow standard strategies for handling those types of resources.
Hi,
I am getting "no such file" exception while calling close on RemoteFile object (file.close() below).
Here is info from stacktrace:
net.schmizz.sshj.sftp.SFTPException: No such file at net.schmizz.sshj.sftp.Response.error(Response.java:140) at net.schmizz.sshj.sftp.Response.ensureStatusIs(Response.java:133) at net.schmizz.sshj.sftp.Response.ensureStatusPacketIsOK(Response.java:125) at net.schmizz.sshj.sftp.RemoteResource.close(RemoteResource.java:55)
The text was updated successfully, but these errors were encountered: