file_browser#

Classes:

BrowseFile

Representation of a file or directory in the file browser.

BrowseFileResponse

Response information when using the instance file browser API.

FileBrowserPrefixes

Configuration for allowed file browser prefixes and default directories.

class BrowseFile#

Representation of a file or directory in the file browser.

Attributes:

base_path

Absolute path of the parent directory.

errmesg

file_name

Base name of file or directory.

is_hidden

is_link

link_path

mtime

path_abs

size

type

base_path: str#

Absolute path of the parent directory.

errmesg: str | None#
file_name: str#

Base name of file or directory.

is_hidden: bool#
mtime: float | None#
path_abs: str#
size: int | None#
type: Literal['dir', 'file'] | None#
class BrowseFileResponse#

Response information when using the instance file browser API.

Attributes:

back_path: str#
files: List[BrowseFile]#
type: str#
class FileBrowserPrefixes#

Configuration for allowed file browser prefixes and default directories.

Attributes:

allowed_prefixes: List[str] | None#
import_dir_default: str | None#
project_dir_default: str | None#