summaryrefslogtreecommitdiff
path: root/std/fs/walk_test.ts
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-04-29 22:00:31 +0200
committerGitHub <noreply@github.com>2020-04-29 16:00:31 -0400
commit3e6ea6284178df0be4982d9775f47b47b14c6139 (patch)
treeed684ea536e32023e72004110556ad8285126676 /std/fs/walk_test.ts
parent721a4ad59d4a8bdd8470d6b98839137f14c84ba9 (diff)
BREAKING: Include limited metadata in 'DirEntry' objects (#4941)
This change is to prevent needed a separate stat syscall for each file when using readdir. For consistency, this PR also modifies std's `WalkEntry` interface to extend `DirEntry` with an additional `path` field.
Diffstat (limited to 'std/fs/walk_test.ts')
-rw-r--r--std/fs/walk_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/fs/walk_test.ts b/std/fs/walk_test.ts
index ea9a33773..8bd4577b9 100644
--- a/std/fs/walk_test.ts
+++ b/std/fs/walk_test.ts
@@ -24,8 +24,8 @@ export function testWalk(
Deno.test({ ignore, name: `[walk] ${name}`, fn });
}
-function normalize({ filename }: WalkEntry): string {
- return filename.replace(/\\/g, "/");
+function normalize({ path }: WalkEntry): string {
+ return path.replace(/\\/g, "/");
}
export async function walkArray(