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>" } ]
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Browser session ID
Absolute directory path.
Directory listing
Array of file or directory information entries.