{.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
|
|
@ -86,7 +86,7 @@ proc main =
|
|||
quit "[Error] no input file."
|
||||
if outfile.len == 0:
|
||||
outfile = infile
|
||||
if not existsFile(outfile) or not sameFile(infile, outfile):
|
||||
if not fileExists(outfile) or not sameFile(infile, outfile):
|
||||
backup = false # no backup needed since won't be over-written
|
||||
if backup:
|
||||
let infileBackup = infile & ".backup" # works with .nim or .nims
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue