no message
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Constants;
|
||||
import Common_old.Current;
|
||||
import Common_old.UI.UI;
|
||||
@@ -24,12 +25,12 @@ public class AddFile extends ChangeFilePass<DBProjectFile> {
|
||||
src = (File) args[0];
|
||||
mode = Mode.Import;
|
||||
fileName = src.getName();
|
||||
if (Utils.ContainsCyrillic(fileName)) {
|
||||
Log.Writeln_("Имя файла " + Utils.Brackets(fileName) + " содержит кириллицу.");
|
||||
if (CommonUtils.ContainsCyrillic(fileName)) {
|
||||
Log.Writeln_("Имя файла " + CommonUtils.Brackets(fileName) + " содержит кириллицу.");
|
||||
return false;
|
||||
}
|
||||
if (Utils.ContainsForbiddenName(fileName)) {
|
||||
Log.Writeln_("Имя файла " + Utils.Brackets(fileName)
|
||||
Log.Writeln_("Имя файла " + CommonUtils.Brackets(fileName)
|
||||
+ " содержит запрещенные символы." +
|
||||
"\n" + Constants.all_forbidden_characters_string);
|
||||
return false;
|
||||
@@ -46,12 +47,12 @@ public class AddFile extends ChangeFilePass<DBProjectFile> {
|
||||
//->
|
||||
dst = Paths.get(target_dir.getAbsolutePath(), fileName).toFile();
|
||||
if (dst.exists()) {
|
||||
Log.Writeln_("Файл с именем " + Utils.Brackets(fileName) + " уже существует");
|
||||
Log.Writeln_("Файл с именем " + CommonUtils.Brackets(fileName) + " уже существует");
|
||||
return false;
|
||||
}
|
||||
target = new DBProjectFile(dst, project);
|
||||
if (target.fileType.equals(FileType.forbidden)) {
|
||||
Log.Writeln_("Расширение " + Utils.Brackets(Utils.getExtension(dst)) + " недопустимо");
|
||||
Log.Writeln_("Расширение " + CommonUtils.Brackets(CommonUtils.getExtension(dst)) + " недопустимо");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user