Skip to content

Commit 61c5248

Browse files
WeebNetsuringabout
andauthored
Changed deprecated existsFile to fileExists (#326)
Co-authored-by: ringabout <[email protected]>
1 parent e316b14 commit 61c5248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/setup_nimforum.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import strutils, db_sqlite, os, times, json, options, terminal
1212
import auth, frontend/user
1313

1414
proc backup(path: string, contents: Option[string]=none[string]()) =
15-
if existsFile(path):
15+
if fileExists(path):
1616
if contents.isSome() and readFile(path) == contents.get():
1717
# Don't backup if the files are equivalent.
1818
echo("Not backing up because new file is the same.")

0 commit comments

Comments
 (0)