Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between exit and quit in jsch's ChannelSftp?

Tags:

java

sftp

jsch

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?

like image 458
ides Avatar asked Apr 08 '13 06:04

ides


1 Answers

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.

like image 188
Gokul Nath KP Avatar answered Oct 23 '22 18:10

Gokul Nath KP