I'm currently developing a program with jsch, and I am looking at the ChannelSftp class. I just want to know the difference between the quit and exit method.
In the help string of the Sftp example it says "exit - Quit sftp"
and "quit - Quit sftp"
.
So, what's the difference between the two and how do you use these properly?
Both are same. Internally they call just disconnect();
:
public void quit(){ disconnect();}
public void exit(){ disconnect();}
The inofficial JSch documentation makes this clear: exit
, quit
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With