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

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

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

console.log(response.is_dir);
{
  "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 path of the file or directory.

Response

File information

The response is of type object.