From a59f5eadd86e85bf662b37ec40ceb6f80cb207c4 Mon Sep 17 00:00:00 2001 From: Behnam Mohammadi Date: Sat, 14 Nov 2020 02:51:11 +0330 Subject: refactor(std): add std/_util/os.ts module (#8370) This commit adds "std/_util/os.ts" module which contains common os detection logic and is browser compatible. Co-authored-by: Nayeem Rahman --- std/fs/copy.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'std/fs/copy.ts') diff --git a/std/fs/copy.ts b/std/fs/copy.ts index 10bf89186..1bb0a6aff 100644 --- a/std/fs/copy.ts +++ b/std/fs/copy.ts @@ -3,8 +3,7 @@ import * as path from "../path/mod.ts"; import { ensureDir, ensureDirSync } from "./ensure_dir.ts"; import { getFileInfoType, isSubdir } from "./_util.ts"; import { assert } from "../_util/assert.ts"; - -const isWindows = Deno.build.os === "windows"; +import { isWindows } from "../_util/os.ts"; export interface CopyOptions { /** -- cgit v1.2.3