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>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Browser session ID
Absolute path of the file or directory.
File information
The response is of type object.
object