Skip to content

Commit

Permalink
Explain walkdir docstring second example. (#55541)
Browse files Browse the repository at this point in the history
This is a follow-up documentation PR to #55476. I believe the second
example in the `walkdir` docstring is still unintuitive since the result
changes each time. I attempted a simple explanation, but I don't really
know what I'm talking about. Hopefully someone else can explain what is
happening better. Some additional discussion in [this Discourse
post](https://discourse.julialang.org/t/find-all-files-named-findthis-csv-in-nested-subfolders-of-rootfolder/118096).

---------

Co-authored-by: Lilith Orion Hafner <[email protected]>
  • Loading branch information
nathanrboyer and LilithHafner authored Aug 20, 2024
1 parent 9650510 commit 31d413e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,8 @@ The directory tree can be traversed top-down or bottom-up.
If `walkdir` or `stat` encounters a `IOError` it will rethrow the error by default.
A custom error handling function can be provided through `onerror` keyword argument.
`onerror` is called with a `IOError` as argument.
The returned iterator is stateful so when accessed repeatedly each access will
resume where the last left off, like [`Iterators.Stateful`](@ref).
See also: [`readdir`](@ref).
Expand Down

0 comments on commit 31d413e

Please sign in to comment.