Codeunit 135814 Test File Storage Connector

System Application Test Library, System.TestLibraries.ExternalFileStorage

Source AL, 197 lines

src/System Application/Test Library/External File Storage/src/TestFileStorageConnector.Codeunit.allines 11 to 26 of 197, Copyright (c) Microsoft Corporation. MIT

codeunit 135814 "Test File Storage Connector" implements "External File Storage Connector"{    SingleInstance = true;    procedure ListFiles(AccountId: Guid; Path: Text; FilePaginationData: Codeunit "File Pagination Data"; var TempFileAccountContent: Record "File Account Content" temporary);    begin        TempFileAccountContent.Init();        TempFileAccountContent.Type := TempFileAccountContent.Type::Directory;        TempFileAccountContent.Name := 'Test Folder';        TempFileAccountContent.Insert();        TempFileAccountContent.Init();        TempFileAccountContent.Type := TempFileAccountContent.Type::File;        TempFileAccountContent.Name := 'Test.pdf';        TempFileAccountContent.Insert();    end;

All 197 lines

Public procedures 17 in 29

ListFiles(AccountId: Guid; Path: Text; FilePaginationData: Codeunit "File Pagination Data"; var TempFileAccountContent: Record "File Account Content" temporary)new in 26
GetFile(AccountId: Guid; Path: Text; Stream: InStream)new in 26
CreateFile(AccountId: Guid; Path: Text; Stream: InStream)new in 26
CopyFile(AccountId: Guid; SourcePath: Text; TargetPath: Text)new in 26
MoveFile(AccountId: Guid; SourcePath: Text; TargetPath: Text)new in 26
FileExists(AccountId: Guid; Path: Text): Booleannew in 26

All 19 procedures in 26-29

Changes 2 in 28

List17181920212223242526272829
Procedures2
internal GetLastDeletedPath(): Textnew in 28
added
internal ResetLastDeletedPath()new in 28
added

All 2 changes in 26-29