функционал для управления сервером компонент и багов.
удаление временных файлов при запросе версии
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user