Codeunit 70623686 EOS004 InMemoryFileSystem

Codeunit 70623686 EOS004 InMemoryFileSystem

An in-memory file system implementation for the EOS004 IFileSystem interface. This is a single instance codeunit and the file system is kept only for the active session and is NOT persisted. Primary use case is testing and debugging.

Methods

ResetStorage

procedure ResetStorage()

Resets the storage. All data will be lost.


UploadFile

procedure UploadFile(path: Text; var TempBlob: codeunit System.Utilities."Temp Blob")

Parameters / Return Value

  • path Text

  • TempBlob codeunit "System.Utilities."Temp Blob""


ReadFile

procedure ReadFile(path: Text; var TempBlob: codeunit System.Utilities."Temp Blob")

Parameters / Return Value

  • path Text

  • TempBlob codeunit "System.Utilities."Temp Blob""


DeleteFile

procedure DeleteFile(path: Text)

Parameters / Return Value

  • path Text

RenameFile

procedure RenameFile(oldPath: Text; newPath: Text)

Parameters / Return Value

  • oldPath Text

  • newPath Text


CopyFile

procedure CopyFile(fromPath: Text; toPath: Text)

Parameters / Return Value

  • fromPath Text

  • toPath Text


MoveFile

procedure MoveFile(fromPath: Text; toPath: Text)

Parameters / Return Value

  • fromPath Text

  • toPath Text


GetFiles

procedure GetFiles(path: Text; var TempEntries: Record "EOS004 AzFS Entry")

Parameters / Return Value

  • path Text

  • TempEntries Record "EOS004 AzFS Entry"


GetFileAttributes

procedure GetFileAttributes(path: Text; var Result: Dictionary of [Text, Text])

Parameters / Return Value

  • path Text

  • Result Dictionary[Text,Text]


CreateFolder

procedure CreateFolder(path: Text)

Parameters / Return Value

  • path Text

DeleteFolder

procedure DeleteFolder(path: Text; force: Boolean)

Parameters / Return Value

  • path Text

  • force Boolean


MoveFolder

procedure MoveFolder(fromPath: Text; toPath: Text)

Parameters / Return Value

  • fromPath Text

  • toPath Text


Initialize

procedure Initialize(StorageName: Text[250])

Parameters / Return Value

  • StorageName Text[250]

Initialize

procedure Initialize(Config: Record "EOS004 Service Config.")

Parameters / Return Value

  • Config Record "EOS004 Service Config."

GetConfigurationKeys

procedure GetConfigurationKeys(): List of [Text[250]]

Parameters / Return Value

  • Returns List[Text]

GetSecretConfigurationKeys

procedure GetSecretConfigurationKeys(): List of [Text[250]]

Parameters / Return Value

  • Returns List[Text]

Events

OnBeforeCreateNode

local procedure OnBeforeCreateNode(var TempNode: Record "EOS004 MemoryFS Node"; var Handled: Boolean)

Raised before a node is inserted to the file system.

Parameters / Return Value

  • TempNode Record "EOS004 MemoryFS Node"

    The node.

  • Handled Boolean

    Gets or sets if the event is handled.



EOS Labs -