{.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
|
|
@ -313,7 +313,7 @@ proc defaultMsgHandler*(filename: string, line, col: int, msgkind: MsgKind,
|
|||
else: writeLine(stdout, message)
|
||||
|
||||
proc defaultFindFile*(filename: string): string =
|
||||
if existsFile(filename): result = filename
|
||||
if fileExists(filename): result = filename
|
||||
else: result = ""
|
||||
|
||||
proc newSharedState(options: RstParseOptions,
|
||||
|
|
@ -328,7 +328,7 @@ proc newSharedState(options: RstParseOptions,
|
|||
|
||||
proc findRelativeFile(p: RstParser; filename: string): string =
|
||||
result = p.filename.splitFile.dir / filename
|
||||
if not existsFile(result):
|
||||
if not fileExists(result):
|
||||
result = p.s.findFile(filename)
|
||||
|
||||
proc rstMessage(p: RstParser, msgKind: MsgKind, arg: string) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue