no message

This commit is contained in:
2024-10-07 22:04:09 +03:00
parent 7fac84740d
commit 17c0bf7eb3
103 changed files with 560 additions and 491 deletions

View File

@@ -1,5 +1,6 @@
package Visual_DVM_2021.Passes.Server;
import Common.Database.Objects.DBObject;
import Common.Utils.CommonUtils;
import _VisualDVM.Global;
import Common_old.Utils.Utils;
import Repository.RepositoryRefuseException;
@@ -71,7 +72,7 @@ public abstract class RepositoryPass<S extends RepositoryServer, T> extends Pass
}
}
protected void SendFile(File src, String dst) throws Exception {
Command(new ServerExchangeUnit_2021(ServerCode.SendFile, dst, Utils.packFile(src)));
Command(new ServerExchangeUnit_2021(ServerCode.SendFile, dst, CommonUtils.fileToBytes(src)));
}
protected void ReceiveFile(String src, File dst) throws Exception {
Command(new ServerExchangeUnit_2021(ServerCode.ReceiveFile, src));