diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-07-03 14:04:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-03 23:04:23 +0200 |
commit | 695154970d839add2fbbe9754e9e638511120729 (patch) | |
tree | 48b43613261cb982b7e408c96a7cf6688526dd68 /lib/system | |
parent | 4f6acf24ffde4c43ea9f8c954265d23312453b31 (diff) | |
download | Nim-695154970d839add2fbbe9754e9e638511120729.tar.gz |
deprecate existsDir; use dirExists instead (#14884)
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/nimscript.nim | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim index 75a4b7a6e..bf298e0d4 100644 --- a/lib/system/nimscript.nim +++ b/lib/system/nimscript.nim @@ -131,18 +131,17 @@ proc fileExists*(filename: string): bool {.tags: [ReadIOEffect].} = ## Checks if the file exists. builtin -template existsFile*(args: varargs[untyped]): untyped {.deprecated: "use fileExists".} = - # xxx: warning won't be shown for nimsscript because of current logic handling - # `foreignPackageNotes` - fileExists(args) - proc dirExists*(dir: string): bool {. tags: [ReadIOEffect].} = ## Checks if the directory `dir` exists. builtin -proc existsDir*(dir: string): bool = - ## An alias for ``dirExists``. +template existsFile*(args: varargs[untyped]): untyped {.deprecated: "use fileExists".} = + # xxx: warning won't be shown for nimsscript because of current logic handling + # `foreignPackageNotes` + fileExists(args) + +template existsDir*(args: varargs[untyped]): untyped {.deprecated: "use dirExists".} = dirExists(dir) proc selfExe*(): string = |