Codeunit 9761 Dotnet SFTP File in 28
- App
- System Application
- Namespace
- System.SFTPClient
Versions171819202122232425262728latest
Source2829
Source in 28
src/System Application/App/SFTP Client/src/DotnetSFTPFile.Codeunit.al61 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace System.SFTPClient;
using System;
codeunit 9761 "Dotnet SFTP File" implements "ISFTP File"
{
Access = Internal;
InherentEntitlements = X;
InherentPermissions = X;
var
RenciSFTPFile: DotNet RenciISftpFile;
LastOperationSuccessful: Boolean;
procedure MoveTo(Destination: Text): Boolean
begin
LastOperationSuccessful := InternalMoveTo(Destination);
exit(LastOperationSuccessful);
end;
[TryFunction]
local procedure InternalMoveTo(Destination: Text)
begin
RenciSFTPFile.MoveTo(Destination);
end;
procedure Name(): Text
begin
exit(RenciSFTPFile.Name());
end;
procedure FullName(): Text
begin
exit(RenciSFTPFile.FullName());
end;
procedure IsDirectory(): Boolean
begin
exit(RenciSFTPFile.IsDirectory);
end;
procedure Length(): BigInteger
begin
exit(RenciSFTPFile.Length());
end;
procedure LastWriteTime(): DateTime
begin
exit(RenciSFTPFile.LastWriteTimeUtc());
end;
procedure SetFile(NewFile: DotNet RenciISftpFile)
begin
RenciSFTPFile := NewFile;
end;
}Procedures, 7
| Name | Parameters | Returns | Access | Obsolete |
|---|---|---|---|---|
| MoveTo | (Text) | Boolean | public | - |
| Name | () | Text | public | - |
| FullName | () | Text | public | - |
| IsDirectory | () | Boolean | public | - |
| Length | () | BigInteger | public | - |
| LastWriteTime | () | DateTime | public | - |
| SetFile | (DotNet RenciISftpFile) | public | - |