Skip to content

Commit

Permalink
doc: add cross references for walkdir/readdir (#45514)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seelengrab committed May 30, 2022
1 parent 0a917d2 commit b2bce47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,8 @@ By default, `readdir` sorts the list of names it returns. If you want to skip
sorting the names and get them in the order that the file system lists them,
you can use `readdir(dir, sort=false)` to opt out of sorting.
See also: [`walkdir`](@ref).
!!! compat "Julia 1.4"
The `join` and `sort` keyword arguments require at least Julia 1.4.
Expand Down Expand Up @@ -892,6 +894,8 @@ If `walkdir` or `stat` encounters a `IOError` it will rethrow the error by defau
A custom error handling function can be provided through `onerror` keyword argument.
`onerror` is called with a `IOError` as argument.
See also: [`readdir`](@ref).
# Examples
```julia
for (root, dirs, files) in walkdir(".")
Expand Down

0 comments on commit b2bce47

Please sign in to comment.