Module: helpers/utils/path-helpers
Table of contents
Variables
Functions
- getCaptainApps
- getCaptainData
- getCaptainDownloads
- getCaptainFiles
- getCaptainTemporary
- getComfyUIPath
- getDirectory
- getPythonEmbedded
- getUserData
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
Name | Type |
---|---|
...subpath | string [] |
Returns
string
Defined in
src/electron/helpers/utils/path-helpers.ts:41 (opens in a new tab)
getCaptainData
▸ getCaptainData(...subpath
): string
Parameters
Name | Type |
---|---|
...subpath | string [] |
Returns
string
Defined in
src/electron/helpers/utils/path-helpers.ts:33 (opens in a new tab)
getCaptainDownloads
▸ getCaptainDownloads(...subpath
): string
Parameters
Name | Type |
---|---|
...subpath | string [] |
Returns
string
Defined in
src/electron/helpers/utils/path-helpers.ts:37 (opens in a new tab)
getCaptainFiles
▸ getCaptainFiles(...subpath
): string
Parameters
Name | Type |
---|---|
...subpath | string [] |
Returns
string
Defined in
src/electron/helpers/utils/path-helpers.ts:45 (opens in a new tab)
getCaptainTemporary
▸ getCaptainTemporary(...subpath
): string
Parameters
Name | Type |
---|---|
...subpath | string [] |
Returns
string
Defined in
src/electron/helpers/utils/path-helpers.ts:49 (opens in a new tab)
getComfyUIPath
▸ getComfyUIPath(...subpath
): string
Parameters
Name | Type |
---|---|
...subpath | string [] |
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
Name | Type | Description |
---|---|---|
...subpath | string [] | 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
Name | Type |
---|---|
...subpath | string [] |
Returns
string
Defined in
src/electron/helpers/utils/path-helpers.ts:57 (opens in a new tab)
getUserData
▸ getUserData(...subpath
): string
Parameters
Name | Type |
---|---|
...subpath | string [] |
Returns
string
Defined in
src/electron/helpers/utils/path-helpers.ts:29 (opens in a new tab)