diff options
Diffstat (limited to 'std/io/util.ts')
-rw-r--r-- | std/io/util.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/io/util.ts b/std/io/util.ts index 1226640bd..4bcf7d2e9 100644 --- a/std/io/util.ts +++ b/std/io/util.ts @@ -40,7 +40,7 @@ export async function tempFile( const filepath = path.resolve( `${dir}/${opts.prefix || ""}${r}${opts.postfix || ""}` ); - await mkdir(path.dirname(filepath), true); + await mkdir(path.dirname(filepath), { recursive: true }); const file = await open(filepath, "a"); return { file, filepath }; } |