From 1a42695bebb77cfc4a27f08a6bb323017901be26 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Mon, 8 Jul 2019 17:09:23 +0200 Subject: fix emptydir on windows (denoland/deno_std#531) Original: https://github.com/denoland/deno_std/commit/67641b8ea5ba869854ca042e11b200b90da5fc4b --- fs/empty_dir.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/empty_dir.ts') diff --git a/fs/empty_dir.ts b/fs/empty_dir.ts index 51be09971..81bc45839 100644 --- a/fs/empty_dir.ts +++ b/fs/empty_dir.ts @@ -18,7 +18,7 @@ export async function emptyDir(dir: string): Promise { const item = items.shift(); if (item && item.name) { const fn = dir + "/" + item.name; - Deno.remove(fn, { recursive: true }); + await Deno.remove(fn, { recursive: true }); } } } -- cgit v1.2.3