diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-07-02 07:19:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 16:19:13 +0200 |
commit | dc5a40f3f39c6ea672e6dc6aca7f8118a69dda99 (patch) | |
tree | 5565f50d66e33272624093268d0c8641c770f59e /tools/nimweb.nim | |
parent | 366b9a7e4a067cece3b1215de7fb4dffc703e88a (diff) | |
download | Nim-dc5a40f3f39c6ea672e6dc6aca7f8118a69dda99.tar.gz |
{.deprecated: [existsFile: fileExists].} (#14735)
* {.deprecated: [existsFile: fileExists].} * s/existsFile/fileExists/ except under deps * workaround pending #14819 * fix test
Diffstat (limited to 'tools/nimweb.nim')
-rw-r--r-- | tools/nimweb.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/nimweb.nim b/tools/nimweb.nim index a654c2b0a..0a853a54d 100644 --- a/tools/nimweb.nim +++ b/tools/nimweb.nim @@ -199,7 +199,7 @@ proc walkDirRecursively(s: var seq[string], root, ext: string) = proc addFiles(s: var seq[string], dir, ext: string, patterns: seq[string]) = for p in items(patterns): - if existsFile(dir / addFileExt(p, ext)): + if fileExists(dir / addFileExt(p, ext)): s.add(dir / addFileExt(p, ext)) if existsDir(dir / p): walkDirRecursively(s, dir / p, ext) @@ -273,9 +273,9 @@ proc findNim(c: TConfigData): string = if c.nimCompiler.len > 0: return c.nimCompiler var nim = "nim".exe result = "bin" / nim - if existsFile(result): return + if fileExists(result): return for dir in split(getEnv("PATH"), PathSep): - if existsFile(dir / nim): return dir / nim + if fileExists(dir / nim): return dir / nim # assume there is a symlink to the exe or something: return nim @@ -351,7 +351,7 @@ proc buildPdfDoc(c: var TConfigData, 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")) |