mirror of
https://github.com/denoland/deno
synced 2024-10-13 19:42:29 +00: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
|
@ -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