summaryrefslogtreecommitdiff
path: root/std/fs
diff options
context:
space:
mode:
Diffstat (limited to 'std/fs')
-rw-r--r--std/fs/copy.ts3
-rw-r--r--std/fs/ensure_symlink.ts3
-rw-r--r--std/fs/expand_glob.ts3
3 files changed, 3 insertions, 6 deletions
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 {
/**
diff --git a/std/fs/ensure_symlink.ts b/std/fs/ensure_symlink.ts
index 7c68d05e2..b57abe907 100644
--- a/std/fs/ensure_symlink.ts
+++ b/std/fs/ensure_symlink.ts
@@ -3,8 +3,7 @@ import * as path from "../path/mod.ts";
import { ensureDir, ensureDirSync } from "./ensure_dir.ts";
import { exists, existsSync } from "./exists.ts";
import { getFileInfoType } from "./_util.ts";
-
-const isWindows = Deno.build.os == "windows";
+import { isWindows } from "../_util/os.ts";
/**
* Ensures that the link exists.
diff --git a/std/fs/expand_glob.ts b/std/fs/expand_glob.ts
index db60b2465..390df4932 100644
--- a/std/fs/expand_glob.ts
+++ b/std/fs/expand_glob.ts
@@ -16,8 +16,7 @@ import {
walkSync,
} from "./walk.ts";
import { assert } from "../_util/assert.ts";
-
-const isWindows = Deno.build.os == "windows";
+import { isWindows } from "../_util/os.ts";
export interface ExpandGlobOptions extends Omit<GlobOptions, "os"> {
root?: string;