Skip to content

Commit 2583220

Browse files
committed
Ensure the extension dir exists before writing to it
1 parent 6ded193 commit 2583220

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extensions/ql-vscode/src/databaseFetcher.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ async function databaseFetcher(
4242
if (!storagePath) {
4343
throw new Error("No storage path specified.");
4444
}
45+
await fs.ensureDir(storagePath)
4546
const unzipPath = await getStorageFolder(storagePath, databaseUrl);
4647

4748
const response = await fetch.default(databaseUrl);

0 commit comments

Comments
 (0)