Browser Filesystem

Get information about a file or directory

get/browsers/{id_or_name}/fs/file_info

Request

  • Base URL
    https://api.onkernel.com
  • URL
    https://api.onkernel.com/browsers/{id_or_name}/fs/file_info
  • Auth
    HTTP bearer

Path parameters

id_or_namestring required

Browser session ID or name

Query parameters

pathstring required

Absolute path of the file or directory.

Response

File information

is_dirboolean required

Whether the path is a directory.

mod_timestring date-time required

Last modification time.

modestring required

File mode bits (e.g., "drwxr-xr-x" or "-rw-r--r--").

namestring required

Base name of the file or directory.

pathstring required

Absolute path.

size_bytesinteger required

Size in bytes. 0 for directories.

Changes

No recorded changes to this operation across all 123 revisions of this API.