mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修改变量command
This commit is contained in:
@@ -225,8 +225,8 @@ public class SshjSftp extends AbstractFtp {
|
|||||||
Session session = null;
|
Session session = null;
|
||||||
try {
|
try {
|
||||||
session = ssh.startSession();
|
session = ssh.startSession();
|
||||||
final Session.Command pwd = session.exec(exec);
|
final Session.Command command = session.exec(exec);
|
||||||
InputStream inputStream = pwd.getInputStream();
|
InputStream inputStream = command.getInputStream();
|
||||||
return IoUtil.read(inputStream, DEFAULT_CHARSET);
|
return IoUtil.read(inputStream, DEFAULT_CHARSET);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new FtpException(e);
|
throw new FtpException(e);
|
||||||
|
Reference in New Issue
Block a user