further steps to get rid of deprecated endOfFile and readLine
This commit is contained in:
parent
a489161b16
commit
e261a88d07
11 changed files with 35 additions and 21 deletions
|
|
@ -414,7 +414,7 @@ proc isRootDir*(path: string): bool {.
|
|||
var p = parentDir(path)
|
||||
result = p == path or p.len == 0
|
||||
|
||||
iterator parentDirs*(path: string, fromRoot = false, inclusive = true): string =
|
||||
iterator parentDirs*(path: string, fromRoot=false, inclusive=true): string =
|
||||
## Walks over all parent directories of a given `path`
|
||||
##
|
||||
## If `fromRoot` is set, the traversal will start from the file system root
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue