Skip to content

Commit

Permalink
fix: ensure full cache path (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen authored Sep 30, 2022
1 parent ed49f74 commit 5a27e0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ export async function download(options: FetchOptions): Promise<string> {
? await isFile(cacheFilePath)
: setting === "only" || setting !== "reloadAll";

await ensureDir(cacheBasePath);

if (!cached) {
const meta = { url };
switch (url.protocol) {
Expand Down

0 comments on commit 5a27e0e

Please sign in to comment.