summaryrefslogtreecommitdiff
path: root/std/fs/walk.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/fs/walk.ts')
-rw-r--r--std/fs/walk.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/std/fs/walk.ts b/std/fs/walk.ts
index 06d889b0e..4ae85ff75 100644
--- a/std/fs/walk.ts
+++ b/std/fs/walk.ts
@@ -4,7 +4,7 @@
import { assert } from "../_util/assert.ts";
import { basename, join, normalize } from "../path/mod.ts";
-export function createWalkEntrySync(path: string): WalkEntry {
+export function _createWalkEntrySync(path: string): WalkEntry {
path = normalize(path);
const name = basename(path);
const info = Deno.statSync(path);
@@ -17,7 +17,7 @@ export function createWalkEntrySync(path: string): WalkEntry {
};
}
-export async function createWalkEntry(path: string): Promise<WalkEntry> {
+export async function _createWalkEntry(path: string): Promise<WalkEntry> {
path = normalize(path);
const name = basename(path);
const info = await Deno.stat(path);
@@ -98,7 +98,7 @@ export async function* walk(
return;
}
if (includeDirs && include(root, exts, match, skip)) {
- yield await createWalkEntry(root);
+ yield await _createWalkEntry(root);
}
if (maxDepth < 1 || !include(root, undefined, undefined, skip)) {
return;
@@ -151,7 +151,7 @@ export function* walkSync(
return;
}
if (includeDirs && include(root, exts, match, skip)) {
- yield createWalkEntrySync(root);
+ yield _createWalkEntrySync(root);
}
if (maxDepth < 1 || !include(root, undefined, undefined, skip)) {
return;