diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-25 00:45:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 00:45:55 +0200 |
commit | 4a8d25646aa58e3e59d622e69c41822b40415c46 (patch) | |
tree | e228581912bfc0a4bdb56e3caec2ca3a1c1b9087 /std/fs | |
parent | 0cb1bb98cc2de8dfe51b7adbe992666936146c90 (diff) |
BREAKING CHANGE: remove Deno.OpenMode (#4884)
This commit removes Deno.OpenMode along with overloaded variants
of Deno.open() and Deno.openSync() that used OpenMode.
Diffstat (limited to 'std/fs')
-rw-r--r-- | std/fs/walk_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/fs/walk_test.ts b/std/fs/walk_test.ts index 6a44f5514..b054db4cf 100644 --- a/std/fs/walk_test.ts +++ b/std/fs/walk_test.ts @@ -1,4 +1,4 @@ -const { cwd, chdir, makeTempDir, mkdir, open, symlink } = Deno; +const { cwd, chdir, makeTempDir, mkdir, create, symlink } = Deno; const { remove } = Deno; import { walk, walkSync, WalkOptions, WalkEntry } from "./walk.ts"; import { assert, assertEquals, assertThrowsAsync } from "../testing/asserts.ts"; @@ -46,7 +46,7 @@ export async function walkArray( } export async function touch(path: string): Promise<void> { - const f = await open(path, "w"); + const f = await create(path); f.close(); } |