no message

This commit is contained in:
2023-10-10 16:53:29 +03:00
parent 94e77b4607
commit c05eb12737
11 changed files with 55 additions and 40 deletions

View File

@@ -17,7 +17,6 @@ import java.net.UnknownHostException;
import java.nio.charset.StandardCharsets;
import java.util.LinkedHashMap;
import java.util.Vector;
//убираем лишний класс-прослойку.
//старый server pass Пока не трогаем.
//https://stackoverflow.com/questions/15108923/sftp-file-transfer-using-java-jsch
@@ -167,7 +166,6 @@ public abstract class ConnectionPass<T> extends Pass_2021<T> {
br.close();
return res;
}
public void getSingleFile(String src, String dst) throws Exception {
sftpChannel.get(src, dst);
}
@@ -298,11 +296,11 @@ public abstract class ConnectionPass<T> extends Pass_2021<T> {
// System.out.println(command);
pin.write((command + "\r\n").getBytes());
ShellParser.ReadLine(fromServer);
// UI.Info("echo read");
// UI.Info("echo read");
ShellParser.ReadInvitation(fromServer);
// UI.Info("first invitation read");
// UI.Info("first invitation read");
result = ShellParser.getCommandResult(fromServer);
// UI.Info("result = " + Utils.Brackets(result));
// UI.Info("result = " + Utils.Brackets(result));
}
shellChannel.disconnect();
return result;
@@ -383,12 +381,12 @@ public abstract class ConnectionPass<T> extends Pass_2021<T> {
ShellCommand("rm -rf " + Utils.DQuotes(dir));
} else throw new PassException("Недопустимый путь для удаления папки " + Utils.DQuotes(dir));
}
//скорее всего,временные методы. они есть в UserConnection, при удаленном запуске тестирования
//--------------------------------------------------------------------------------
public void MKDIR(RemoteFile dir) throws Exception {
if (!Exists(dir.parent, dir.name)) sftpChannel.mkdir(dir.full_name);
}
//--
//скорее всего,временные методы. они есть в UserConnection, при удаленном запуске тестирования
//--------------------------------------------------------------------------------
public void MKDIR(RemoteFile dir) throws Exception {
if (!Exists(dir.parent, dir.name)) sftpChannel.mkdir(dir.full_name);
}
//--
}