/api/v0/files/read

Read a file from MFS.

Arguments

  • arg [string]: Path to file to be read. Required: yes.

  • offset [int64]: Byte offset to begin reading from. Required: no.

  • count [int64]: Maximum number of bytes to read. Required: no.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl -X POST "http://127.0.0.1:5001/api/v0/files/read?arg=<path>&offset=<value>&count=<value>"

Last updated