Skip to main content
GET
/
devices
/
{deviceId}
/
files
JavaScript
import Mobilerun from '@mobilerun/sdk';

const client = new Mobilerun({
  apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
});

const files = await client.devices.files.list('deviceId', { path: 'path' });

console.log(files.files);
{
  "files": [
    {
      "extendedAttributes": true,
      "group": "<string>",
      "hardLinks": 123,
      "modifiedAt": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "owner": "<string>",
      "permissions": {
        "group": {
          "execute": true,
          "read": true,
          "write": true
        },
        "others": {
          "execute": true,
          "read": true,
          "write": true
        },
        "owner": {
          "execute": true,
          "read": true,
          "write": true
        },
        "special": {
          "setGid": true,
          "setUid": true,
          "sticky": true
        }
      },
      "size": 123,
      "type": "<string>",
      "symlinkTarget": "<string>"
    }
  ],
  "path": "<string>",
  "total": 123,
  "$schema": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token via Authorization header

Headers

X-Device-Display-ID
integer<int64>
default:0
Required range: x >= 0

Path Parameters

deviceId
string
required

Query Parameters

path
string
required

Response

OK

files
object[] | null
required
path
string
required
total
integer<int64>
required
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://example.com/schemas/FileListBody.json"