{.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
|
|
@ -51,7 +51,7 @@ template withDir*(dir: string; body: untyped) =
|
|||
cd(curDir)
|
||||
|
||||
when true:
|
||||
if not existsFile("nakefile.nim"):
|
||||
if not fileExists("nakefile.nim"):
|
||||
echo "No nakefile.nim found. Current working dir is ", getCurrentDir()
|
||||
quit 1
|
||||
var args = ""
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ task "download", "download game assets":
|
|||
client = newHttpClient()
|
||||
path.add DirSep
|
||||
path.add(extractFilename(GameAssets))
|
||||
if existsFile(path):
|
||||
if fileExists(path):
|
||||
echo "The file already exists\n",
|
||||
"[R]emove [M]ove [Q]uit [S]kip Source: ", GameAssets
|
||||
case stdin.readLine.toLowerAscii
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue