mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
修改变量command
This commit is contained in:
parent
8a06d08bc3
commit
780cd6cb28
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user