Captain is currently in ALPHA. We are happy to get your feedback
Core API
Helpers Utils Path Helpers

Module: helpers/utils/path-helpers

Table of contents

Variables

Functions

Variables

resourcesDirectory

Const resourcesDirectory: string

Defined in

src/electron/helpers/utils/path-helpers.ts:12 (opens in a new tab)

Functions

getCaptainApps

getCaptainApps(...subpath): string

Parameters

NameType
...subpathstring[]

Returns

string

Defined in

src/electron/helpers/utils/path-helpers.ts:41 (opens in a new tab)


getCaptainData

getCaptainData(...subpath): string

Parameters

NameType
...subpathstring[]

Returns

string

Defined in

src/electron/helpers/utils/path-helpers.ts:33 (opens in a new tab)


getCaptainDownloads

getCaptainDownloads(...subpath): string

Parameters

NameType
...subpathstring[]

Returns

string

Defined in

src/electron/helpers/utils/path-helpers.ts:37 (opens in a new tab)


getCaptainFiles

getCaptainFiles(...subpath): string

Parameters

NameType
...subpathstring[]

Returns

string

Defined in

src/electron/helpers/utils/path-helpers.ts:45 (opens in a new tab)


getCaptainTemporary

getCaptainTemporary(...subpath): string

Parameters

NameType
...subpathstring[]

Returns

string

Defined in

src/electron/helpers/utils/path-helpers.ts:49 (opens in a new tab)


getComfyUIPath

getComfyUIPath(...subpath): string

Parameters

NameType
...subpathstring[]

Returns

string

Defined in

src/electron/helpers/utils/path-helpers.ts:53 (opens in a new tab)


getDirectory

getDirectory(...subpath): string

Combines the resources directory path with additional subpaths. This utility function uses the Node.js path module's join method to construct a full path by concatenating the resources directory path with any subpaths provided as arguments.

Parameters

NameTypeDescription
...subpathstring[]One or more path segments to be joined with the resources directory.

Returns

string

The combined path formed by joining the resources directory with the provided subpaths.

Defined in

src/electron/helpers/utils/path-helpers.ts:25 (opens in a new tab)


getPythonEmbedded

getPythonEmbedded(...subpath): string

Parameters

NameType
...subpathstring[]

Returns

string

Defined in

src/electron/helpers/utils/path-helpers.ts:57 (opens in a new tab)


getUserData

getUserData(...subpath): string

Parameters

NameType
...subpathstring[]

Returns

string

Defined in

src/electron/helpers/utils/path-helpers.ts:29 (opens in a new tab)