diff options
Diffstat (limited to 'std/io')
-rw-r--r-- | std/io/util.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/std/io/util.ts b/std/io/util.ts index 28688ae91..18ddb4def 100644 --- a/std/io/util.ts +++ b/std/io/util.ts @@ -47,6 +47,11 @@ export async function tempFile( `${dir}/${opts.prefix || ""}${r}${opts.postfix || ""}` ); await mkdir(path.dirname(filepath), { recursive: true }); - const file = await open(filepath, "a"); + const file = await open(filepath, { + create: true, + read: true, + write: true, + append: true, + }); return { file, filepath }; } |