修改变量command

This commit is contained in:
阿坤同学 2021-12-31 17:22:50 +08:00
parent 8a06d08bc3
commit 780cd6cb28

View File

@ -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);