1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 08:09:08 -05:00

doc(std/fs): fix sync walk example (#6174)

The example doesn't compile : Property 'filename' does not exist on type 'WalkEntry'.
The property has been renamed : fileInfo.filename → fileInfo.name
This commit is contained in:
jersou 2020-06-08 23:09:38 +02:00 committed by GitHub
parent 0bf952bb49
commit 1f4520d2bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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