MCPcopy
hub / github.com/nukeop/nuclear / getDownloadsDir

Function getDownloadsDir

packages/player/src/services/plugins/pluginDownloader.ts:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12};
13
14const getDownloadsDir = async (): Promise<string> => {
15 await ensureDir(DOWNLOADS_DIR);
16 const base = await appDataDir();
17 return join(base, DOWNLOADS_DIR);
18};
19
20export const downloadAndExtractPlugin = async ({
21 pluginId,

Callers 2

downloadAndExtractPluginFunction · 0.85
cleanupDownloadFunction · 0.85

Calls 1

ensureDirFunction · 0.90

Tested by

no test coverage detected