From 3e6ea6284178df0be4982d9775f47b47b14c6139 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 29 Apr 2020 22:00:31 +0200 Subject: 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. --- std/fs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/fs/README.md') diff --git a/std/fs/README.md b/std/fs/README.md index 289069694..8d1be54bf 100644 --- a/std/fs/README.md +++ b/std/fs/README.md @@ -156,8 +156,8 @@ for (const fileInfo of walkSync(".")) { // Async async function printFilesNames() { - for await (const fileInfo of walk()) { - console.log(fileInfo.filename); + for await (const entry of walk()) { + console.log(entry.path); } } -- cgit v1.2.3