summaryrefslogtreecommitdiff
path: root/std/fs/walk.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-29 16:39:37 -0400
committerGitHub <noreply@github.com>2020-04-29 16:39:37 -0400
commitbc792c02674cc22459a3016b271f9c5b70e9d573 (patch)
tree44636cedddd7d55638733db018b04bf18f22e812 /std/fs/walk.ts
parent78e0ae643c8eb9817b3396cf07a263ce9f03fc4c (diff)
make camel case readDir, readLink, realPath (#4995)
Diffstat (limited to 'std/fs/walk.ts')
-rw-r--r--std/fs/walk.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/fs/walk.ts b/std/fs/walk.ts
index a99d35a50..d01f35167 100644
--- a/std/fs/walk.ts
+++ b/std/fs/walk.ts
@@ -3,7 +3,7 @@
// Copyright 2009 The Go Authors. All rights reserved. BSD license.
import { unimplemented, assert } from "../testing/asserts.ts";
import { basename, join, normalize } from "../path/mod.ts";
-const { readdir, readdirSync, stat, statSync } = Deno;
+const { readDir, readDirSync, stat, statSync } = Deno;
export function createWalkEntrySync(path: string): WalkEntry {
path = normalize(path);
@@ -103,7 +103,7 @@ export async function* walk(
if (maxDepth < 1 || !include(root, undefined, undefined, skip)) {
return;
}
- for await (const entry of readdir(root)) {
+ for await (const entry of readDir(root)) {
if (entry.isSymlink) {
if (followSymlinks) {
// TODO(ry) Re-enable followSymlinks.
@@ -156,7 +156,7 @@ export function* walkSync(
if (maxDepth < 1 || !include(root, undefined, undefined, skip)) {
return;
}
- for (const entry of readdirSync(root)) {
+ for (const entry of readDirSync(root)) {
if (entry.isSymlink) {
if (followSymlinks) {
unimplemented();