Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Заменил Сообщить на Лог.Отладка #5

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MIT License (MIT)

Copyright (c) 2016 Andrei Ovsiankin
Copyright (c) 2017-2023 BIA Technologies, LLC
Copyright (c) 2017-2024 BIA Technologies, LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 11 additions & 2 deletions src/Модули/ФайловыеОперации.os
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@

#Область ОписаниеПеременных

Перем Лог; // Переменная для хранения логов

#КонецОбласти

#Область ПрограммныйИнтерфейс

// Проверяет, является ли файл пустым.
Expand All @@ -14,7 +21,7 @@

ГраницаПустотыВБайтах = 3; // Для BOM и переноса
Файл = Новый Файл(ПутьКФайлу);
Сообщить("" + Файл.Размер());
Лог.Отладка("" + Файл.Размер());
Возврат Файл.Размер() <= ГраницаПустотыВБайтах;

КонецФункции
Expand Down Expand Up @@ -323,4 +330,6 @@
КонецПроцедуры


#КонецОбласти
#КонецОбласти

Лог = ПараметрыПриложения.Лог();