deprecate existsDir; use dirExists instead (#14884)
This commit is contained in:
parent
4f6acf24ff
commit
695154970d
14 changed files with 32 additions and 39 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue