no message

This commit is contained in:
2024-10-14 12:54:52 +03:00
parent e1627badd3
commit e64a4f4c47
45 changed files with 211 additions and 200 deletions

View File

@@ -66,11 +66,11 @@ public abstract class Component extends DBObject implements Loggable {
minimal_version = Long.parseLong(v_string);
}
public void ReplaceOldFile() throws Exception {
Utils.delete_with_check(getFile());
Utils_.forceDeleteWithCheck(getFile());
//-скопировать файл
Files.move(getNewFile().toPath(), getFile().toPath(), StandardCopyOption.REPLACE_EXISTING);
//удалить новый файл.
Utils.delete_with_check(getNewFile());
Utils_.forceDeleteWithCheck(getNewFile());
}
public void Update() throws Exception {
if (!getNewFile().setExecutable(true)) throw new PassException("Не удалось разрешить файл\n" +