From fec0fa57d04a04d834ccc9aa4888c7672008c0e7 Mon Sep 17 00:00:00 2001 From: Kevin Bonham Date: Thu, 16 Sep 2021 12:54:09 -0400 Subject: [PATCH] Update walkdir / walkpath in API table `walkpath` does not exist in `Base`, and `walkdir` has a different behavior, so I wasn't sure if I should make this two rows or treat them as equivalent. ``` julia> p = "docs" "docs" julia> for item in walkdir(p) @show item end item = ("docs", ["src"], ["Project.toml", "make.jl"]) item = ("docs/src", String[], ["index.md"]) julia> for item in walkpath(p) @show item end ERROR: UndefVarError: walkpath not defined Stacktrace: [1] top-level scope @ ./REPL[3]:1 julia> using FilePaths julia> for item in walkpath(p) @show item end ERROR: MethodError: no method matching walkpath(::String) Closest candidates are: walkpath(::P; topdown, follow_symlinks, onerror) where P<:AbstractPath at /home/kevin/.julia/packages/FilePathsBase/YFK4h/src/pat h.jl:709 Stacktrace: [1] top-level scope @ ./REPL[5]:1 julia> for item in walkpath(Path(p)) @show item end item = p"docs/Project.toml" item = p"docs/make.jl" item = p"docs/src" item = p"docs/src/index.md" ``` --- docs/src/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/api.md b/docs/src/api.md index 0330ffe..65ea5f6 100644 --- a/docs/src/api.md +++ b/docs/src/api.md @@ -56,7 +56,7 @@ mv | mv download | download readdir | readdir N/A | readpath -walkpath | walkpath +walkdir | walkpath rm | rm touch | touch tempname() | tempname(::Type{<:AbstractPath}) (or tmpname)