diff options
Diffstat (limited to 'std/fs')
-rw-r--r-- | std/fs/_util.ts (renamed from std/fs/utils.ts) | 0 | ||||
-rw-r--r-- | std/fs/_util_test.ts (renamed from std/fs/utils_test.ts) | 2 | ||||
-rw-r--r-- | std/fs/copy.ts | 2 | ||||
-rw-r--r-- | std/fs/ensure_dir.ts | 2 | ||||
-rw-r--r-- | std/fs/ensure_file.ts | 2 | ||||
-rw-r--r-- | std/fs/ensure_link.ts | 2 | ||||
-rw-r--r-- | std/fs/ensure_symlink.ts | 2 | ||||
-rw-r--r-- | std/fs/expand_glob.ts | 3 | ||||
-rw-r--r-- | std/fs/move.ts | 2 |
9 files changed, 9 insertions, 8 deletions
diff --git a/std/fs/utils.ts b/std/fs/_util.ts index 48a98a0b1..48a98a0b1 100644 --- a/std/fs/utils.ts +++ b/std/fs/_util.ts diff --git a/std/fs/utils_test.ts b/std/fs/_util_test.ts index e104e3e7d..48fc33ecd 100644 --- a/std/fs/utils_test.ts +++ b/std/fs/_util_test.ts @@ -2,7 +2,7 @@ import { assertEquals } from "../testing/asserts.ts"; import * as path from "../path/mod.ts"; -import { isSubdir, getFileInfoType, PathType } from "./utils.ts"; +import { isSubdir, getFileInfoType, PathType } from "./_util.ts"; import { ensureFileSync } from "./ensure_file.ts"; import { ensureDirSync } from "./ensure_dir.ts"; diff --git a/std/fs/copy.ts b/std/fs/copy.ts index 609a8437b..85558d905 100644 --- a/std/fs/copy.ts +++ b/std/fs/copy.ts @@ -1,7 +1,7 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import * as path from "../path/mod.ts"; import { ensureDir, ensureDirSync } from "./ensure_dir.ts"; -import { isSubdir, getFileInfoType } from "./utils.ts"; +import { isSubdir, getFileInfoType } from "./_util.ts"; import { assert } from "../testing/asserts.ts"; export interface CopyOptions { diff --git a/std/fs/ensure_dir.ts b/std/fs/ensure_dir.ts index ecc7356ef..34053b157 100644 --- a/std/fs/ensure_dir.ts +++ b/std/fs/ensure_dir.ts @@ -1,5 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { getFileInfoType } from "./utils.ts"; +import { getFileInfoType } from "./_util.ts"; const { lstat, lstatSync, mkdir, mkdirSync } = Deno; /** diff --git a/std/fs/ensure_file.ts b/std/fs/ensure_file.ts index de6cab500..2539c71ac 100644 --- a/std/fs/ensure_file.ts +++ b/std/fs/ensure_file.ts @@ -1,7 +1,7 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import * as path from "../path/mod.ts"; import { ensureDir, ensureDirSync } from "./ensure_dir.ts"; -import { getFileInfoType } from "./utils.ts"; +import { getFileInfoType } from "./_util.ts"; const { lstat, lstatSync, writeFile, writeFileSync } = Deno; /** diff --git a/std/fs/ensure_link.ts b/std/fs/ensure_link.ts index e43325a25..f446df781 100644 --- a/std/fs/ensure_link.ts +++ b/std/fs/ensure_link.ts @@ -2,7 +2,7 @@ import * as path from "../path/mod.ts"; import { ensureDir, ensureDirSync } from "./ensure_dir.ts"; import { exists, existsSync } from "./exists.ts"; -import { getFileInfoType } from "./utils.ts"; +import { getFileInfoType } from "./_util.ts"; /** * Ensures that the hard link exists. diff --git a/std/fs/ensure_symlink.ts b/std/fs/ensure_symlink.ts index 03c355b5d..2a184bb4f 100644 --- a/std/fs/ensure_symlink.ts +++ b/std/fs/ensure_symlink.ts @@ -2,7 +2,7 @@ import * as path from "../path/mod.ts"; import { ensureDir, ensureDirSync } from "./ensure_dir.ts"; import { exists, existsSync } from "./exists.ts"; -import { getFileInfoType } from "./utils.ts"; +import { getFileInfoType } from "./_util.ts"; /** * Ensures that the link exists. diff --git a/std/fs/expand_glob.ts b/std/fs/expand_glob.ts index 803c67cdf..e5abdabcf 100644 --- a/std/fs/expand_glob.ts +++ b/std/fs/expand_glob.ts @@ -4,7 +4,6 @@ import { globToRegExp, isAbsolute, isGlob, - isWindows, joinGlobs, normalize, } from "../path/mod.ts"; @@ -19,6 +18,8 @@ import { assert } from "../testing/asserts.ts"; const { cwd } = Deno; type FileInfo = Deno.FileInfo; +const isWindows = Deno.build.os == "windows"; + export interface ExpandGlobOptions extends GlobOptions { root?: string; exclude?: string[]; diff --git a/std/fs/move.ts b/std/fs/move.ts index cf1e49193..4a6395365 100644 --- a/std/fs/move.ts +++ b/std/fs/move.ts @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { exists, existsSync } from "./exists.ts"; -import { isSubdir } from "./utils.ts"; +import { isSubdir } from "./_util.ts"; interface MoveOptions { overwrite?: boolean; |