{.deprecated: [existsFile: fileExists].} (#14735)
* {.deprecated: [existsFile: fileExists].}
* s/existsFile/fileExists/ except under deps
* workaround pending #14819
* fix test
This commit is contained in:
parent
366b9a7e4a
commit
dc5a40f3f3
31 changed files with 66 additions and 67 deletions
|
|
@ -511,7 +511,7 @@ proc walker(pattern; dir: string; counter: var int, errors: var int) =
|
|||
if optFollow in options and optRecursive in options and
|
||||
path.hasRightDirectory:
|
||||
walker(pattern, path, counter, errors)
|
||||
elif existsFile(dir):
|
||||
elif fileExists(dir):
|
||||
processFile(pattern, dir, counter, errors)
|
||||
else:
|
||||
printError "Error: no such file or directory: " & dir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue