From 1f4520d2bd6f7ba10a65aaa3331d67799f9e5991 Mon Sep 17 00:00:00 2001 From: jersou Date: Mon, 8 Jun 2020 23:09:38 +0200 Subject: [PATCH] doc(std/fs): fix sync walk example (#6174) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The example doesn't compile : Property 'filename' does not exist on type 'WalkEntry'. The property has been renamed : fileInfo.filename → fileInfo.name --- std/fs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/fs/README.md b/std/fs/README.md index 99cbc076a1..e0f0d85ce0 100644 --- a/std/fs/README.md +++ b/std/fs/README.md @@ -154,8 +154,8 @@ Iterate all files in a directory recursively. ```ts import { walk, walkSync } from "https://deno.land/std/fs/mod.ts"; -for (const fileInfo of walkSync(".")) { - console.log(fileInfo.filename); +for (const entry of walkSync(".")) { + console.log(entry.path); } // Async