mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-02-09 13:47:03 +02:00
Merge branch 'main' of https://github.com/Bayselonarrend/OpenIntegrations
This commit is contained in:
commit
a8b25df3a9
BIN
data.json.gpg
BIN
data.json.gpg
Binary file not shown.
@ -289,7 +289,7 @@ Function GetBinary(Parameter) Export
|
||||
|
||||
LocalFile = New File(LocalValue);
|
||||
|
||||
If LocalFile.Exists() Then
|
||||
If LocalFile.Exist() Then
|
||||
Value = New BinaryData(LocalValue);
|
||||
Else
|
||||
Value = MainValue;
|
||||
@ -398,7 +398,7 @@ Function DataFilePath()
|
||||
|
||||
RepositoryFile = New File(PossiblePath);
|
||||
|
||||
If RepositoryFile.Exists() Then
|
||||
If RepositoryFile.Exist() Then
|
||||
Path = PossiblePath;
|
||||
EndIf;
|
||||
|
||||
@ -446,20 +446,20 @@ Procedure WriteLogFile(Val Data, Val Method, Val Library)
|
||||
|
||||
LogDirectory = New File(LogPath);
|
||||
|
||||
If Not LogDirectory.Exists() Then
|
||||
If Not LogDirectory.Exist() Then
|
||||
CreateDirectory(LogPath);
|
||||
EndIf;
|
||||
|
||||
LibraryLogCatalog = New File(LibraryLogPath);
|
||||
|
||||
If Not LibraryLogCatalog.Exists() Then
|
||||
If Not LibraryLogCatalog.Exist() Then
|
||||
CreateDirectory(LibraryLogPath);
|
||||
EndIf;
|
||||
|
||||
FilePath = LibraryLogPath + "/" + Method + ".log";
|
||||
LogFile = New File(FilePath);
|
||||
|
||||
If Not LogFile.Exists() Then
|
||||
If Not LogFile.Exist() Then
|
||||
LogDocument = New TextDocument;
|
||||
LogDocument.SetText(Data);
|
||||
LogDocument.Write(FilePath);
|
||||
|
@ -51,7 +51,7 @@ Procedure GetBinaryData(Value) Export
|
||||
|
||||
File = New File(Value);
|
||||
|
||||
If File.Exists() Then
|
||||
If File.Exist() Then
|
||||
Value = New BinaryData(Value);
|
||||
|
||||
ElsIf StrFind(Value, "//") Then
|
||||
@ -85,7 +85,7 @@ Procedure GetBinaryOrStream(Value) Export
|
||||
|
||||
File = New File(Value);
|
||||
|
||||
If File.Exists() Then
|
||||
If File.Exist() Then
|
||||
Value = New FileStream(Value, FileOpenMode.Open);
|
||||
Else
|
||||
GetBinaryData(Value);
|
||||
@ -116,7 +116,7 @@ Procedure GetCollection(Value) Export
|
||||
File = New File(Value);
|
||||
JSONReader = New JSONReader;
|
||||
|
||||
If File.Exists() Then
|
||||
If File.Exist() Then
|
||||
|
||||
JSONReader.OpenFile(Value);
|
||||
|
||||
@ -230,7 +230,7 @@ Procedure GetLine(Value, Val FromSource = False) Export
|
||||
Value = OPI_Tools.NumberToString(Value);
|
||||
File = New File(Value);
|
||||
|
||||
If File.Exists() Then
|
||||
If File.Exist() Then
|
||||
|
||||
TextReader = New TextReader(Value);
|
||||
Value = TextReader.Read();
|
||||
|
@ -396,7 +396,7 @@ Function ConvertDataWithSizeRetrieval(Data, Val MinimumStreamSize = 0) Export
|
||||
|
||||
FileOnDisk = New File(Data);
|
||||
|
||||
If FileOnDisk.Exists() Then
|
||||
If FileOnDisk.Exist() Then
|
||||
Size = FileOnDisk.Size();
|
||||
Else
|
||||
OPI_TypeConversion.GetBinaryData(Data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user