Codeunit 18122331 EOS004 File System

Codeunit 18122331 EOS004 File System

Methods

iStorageInit

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

Parameters / Return Value

  • Config Record "EOS004 Service Config."

UploadFile

procedure UploadFile(path: Text; var TempBlob: codeunit "Temp Blob"): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • path Text[]

  • TempBlob codeunit "Temp Blob"

  • Returns enum "EOS004 Storage Response Status"


GetFileAttributes

procedure GetFileAttributes(path: Text; var Result: JsonObject): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • path Text[]

  • Result JsonObject

  • Returns enum "EOS004 Storage Response Status"


ReadFile

procedure ReadFile(path: Text; var result: InStream): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • path Text[]

  • result InStream

  • Returns enum "EOS004 Storage Response Status"


DeleteFile

procedure DeleteFile(path: Text): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • path Text[]

  • Returns enum "EOS004 Storage Response Status"


RenameFile

procedure RenameFile(oldPath: Text; newPath: Text): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • oldPath Text[]

  • newPath Text[]

  • Returns enum "EOS004 Storage Response Status"


CopyFile

procedure CopyFile(fromPath: Text; toPath: Text): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • fromPath Text[]

  • toPath Text[]

  • Returns enum "EOS004 Storage Response Status"


MoveFile

procedure MoveFile(fromPath: Text; toPath: Text): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • fromPath Text[]

  • toPath Text[]

  • Returns enum "EOS004 Storage Response Status"


GetFiles

procedure GetFiles(path: Text; var Result: JsonArray): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • path Text[]

  • Result JsonArray

  • Returns enum "EOS004 Storage Response Status"


CreateFolder

procedure CreateFolder(path: Text): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • path Text[]

  • Returns enum "EOS004 Storage Response Status"


DeleteFolder

procedure DeleteFolder(path: Text; force: Boolean): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • path Text[]

  • force Boolean

  • Returns enum "EOS004 Storage Response Status"


MoveFolder

procedure MoveFolder(fromPath: Text; toPath: Text): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • fromPath Text[]

  • toPath Text[]

  • Returns enum "EOS004 Storage Response Status"


SuppressError

procedure SuppressError(value: Boolean)

Parameters / Return Value

  • value Boolean

GetErrorMessage

procedure GetErrorMessage(): Text

Parameters / Return Value

  • Returns Text[]

ReadFile

procedure ReadFile(path: Text; var result: Text): enum "EOS004 Storage Response Status"

Parameters / Return Value

  • path Text[]

  • result Text[]

  • Returns enum "EOS004 Storage Response Status"



EOS Labs -