mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-04-02 15:31:03 +00:00
13 lines
387 B
Plaintext
13 lines
387 B
Plaintext
|
data ReadFileResult:
|
||
|
-- Was the call successful or not
|
||
|
success: bool
|
||
|
-- File content in base64 if the call was successful
|
||
|
content: ?string
|
||
|
-- Error message if the call was unsuccessful
|
||
|
error: ?string
|
||
|
|
||
|
service NodeUtils("node_utils"):
|
||
|
-- Read file from file system.
|
||
|
-- returns file content in base64 format
|
||
|
read_file(path: string) -> ReadFileResult
|