deprecate existsDir; use dirExists instead (#14884)

This commit is contained in:
Timothee Cour 2020-07-03 14:04:23 -07:00 • committed by GitHub
commit 695154970d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 32 additions and 39 deletions

View file

@ -81,7 +81,7 @@ iterator scanSSLCertificates*(useEnvVars = false): string =
if p.endsWith(".pem") or p.endsWith(".crt"):
if fileExists(p):
yield p
elif existsDir(p):
elif dirExists(p):
for fn in joinPath(p, "*").walkFiles():
yield fn
else: