Make walkDirRec docstring more clear (#5377)
This commit is contained in:
parent
36d3fd64da
commit
0d1aa9225a
1 changed files with 2 additions and 2 deletions
|
|
@ -1002,8 +1002,8 @@ iterator walkDir*(dir: string; relative=false): tuple[kind: PathComponent, path:
|
||||||
|
|
||||||
iterator walkDirRec*(dir: string, filter={pcFile, pcDir}): string {.
|
iterator walkDirRec*(dir: string, filter={pcFile, pcDir}): string {.
|
||||||
tags: [ReadDirEffect].} =
|
tags: [ReadDirEffect].} =
|
||||||
## walks over the directory `dir` and yields for each file in `dir`. The
|
## Recursively walks over the directory `dir` and yields for each file in `dir`.
|
||||||
## full path for each file is returned.
|
## The full path for each file is returned. Directories are not returned.
|
||||||
## **Warning**:
|
## **Warning**:
|
||||||
## Modifying the directory structure while the iterator
|
## Modifying the directory structure while the iterator
|
||||||
## is traversing may result in undefined behavior!
|
## is traversing may result in undefined behavior!
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue