GET
/
browsers
/
{id}
/
fs
/
list_files
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: 'My API Key',
});

const response = await client.browsers.fs.listFiles('id', { path: '/J!' });

console.log(response);
[
  {
    "name": "<string>",
    "path": "<string>",
    "size_bytes": 123,
    "is_dir": true,
    "mod_time": "2023-11-07T05:31:56Z",
    "mode": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Browser session ID

Query Parameters

path
string
required

Absolute directory path.

Response

200
application/json

Directory listing

Array of file or directory information entries.