(globalStoragePath: string)
| 71 | * Gets the cache directory path |
| 72 | */ |
| 73 | export async function getCacheDirectoryPath(globalStoragePath: string): Promise<string> { |
| 74 | const basePath = await getStorageBasePath(globalStoragePath) |
| 75 | const cacheDir = path.join(basePath, "cache") |
| 76 | await fs.mkdir(cacheDir, { recursive: true }) |
| 77 | return cacheDir |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Prompts the user to set a custom storage path |
no test coverage detected