From d4bf0670ce02a7561f224085bef6827132335cd5 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Tue, 7 Jan 2020 14:14:33 -0500 Subject: fix: Deno.mkdir should conform to style guide (#3617) --- std/io/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/io') 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 }; } -- cgit v1.2.3