{.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
|
|
@ -25,10 +25,10 @@ proc findNimImpl*(): tuple[path: string, ok: bool] =
|
|||
let nim = "nim".exe
|
||||
result.path = "bin" / nim
|
||||
result.ok = true
|
||||
if existsFile(result.path): return
|
||||
if fileExists(result.path): return
|
||||
for dir in split(getEnv("PATH"), PathSep):
|
||||
result.path = dir / nim
|
||||
if existsFile(result.path): return
|
||||
if fileExists(result.path): return
|
||||
# assume there is a symlink to the exe or something:
|
||||
return (nim, false)
|
||||
|
||||
|
|
@ -295,7 +295,7 @@ proc buildPdfDoc*(nimArgs, destPath: string) =
|
|||
removeFile(dest)
|
||||
moveFile(dest=dest, source=pdf)
|
||||
removeFile(changeFileExt(pdf, "aux"))
|
||||
if existsFile(changeFileExt(pdf, "toc")):
|
||||
if fileExists(changeFileExt(pdf, "toc")):
|
||||
removeFile(changeFileExt(pdf, "toc"))
|
||||
removeFile(changeFileExt(pdf, "log"))
|
||||
removeFile(changeFileExt(pdf, "out"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue