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