We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e316b14 commit 61c5248Copy full SHA for 61c5248
src/setup_nimforum.nim
@@ -12,7 +12,7 @@ import strutils, db_sqlite, os, times, json, options, terminal
12
import auth, frontend/user
13
14
proc backup(path: string, contents: Option[string]=none[string]()) =
15
- if existsFile(path):
+ if fileExists(path):
16
if contents.isSome() and readFile(path) == contents.get():
17
# Don't backup if the files are equivalent.
18
echo("Not backing up because new file is the same.")
0 commit comments