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:
parent
0bf952bb49
commit
1f4520d2bd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue