функционал для управления сервером компонент и багов.

удаление временных файлов при запросе версии
This commit is contained in:
2024-03-29 01:39:14 +03:00
parent a5ffce7c08
commit 9687dc9f29
9 changed files with 208 additions and 9 deletions

View File

@@ -15,9 +15,10 @@ public class RemoteSingleCommand extends CurrentConnectionPass<String> {
@Override
protected void ServerAction() throws Exception {
RemoteFile file = new RemoteFile(user.connection.sftpChannel.getHome(), Utils.getDateName("out"));
user.connection.ShellCommand(command+" 1>"+Utils.DQuotes(file.full_name));
if (user.connection.Exists(file)){
user.connection.ShellCommand(command + " 1>" + Utils.DQuotes(file.full_name));
if (user.connection.Exists(file)) {
target = user.connection.readFromFile(file);
user.connection.sftpChannel.rm(file.full_name);
}
}
}