Ensure certificate directory exists
authorMichel Alexandre Salim <michel@michel-slm.name>
Sat, 15 Aug 2020 23:25:23 +0000 (16:25 -0700)
committerMichel Alexandre Salim <michel@michel-slm.name>
Sat, 15 Aug 2020 23:26:35 +0000 (16:26 -0700)
commitbdc916c2e0d2501dd489a2da9316a5152434f497
treef201e8ad50b57981423788f8fd00ffc4c7f306cc
parentb4450244a5e23605f80b2179ce7d4dbaff56d927
Ensure certificate directory exists

Before choosing a permanent client certificate, Elpher tries to list
existing certificates. This fails if `elpher-certificate-directory` does
not exist, e.g.

```
---- ERROR -----

When attempting to retrieve gemini://alexschroeder.ch/do/comment/2020-08-14_How_to_comment_using_Elpher:
Opening directory: No such file or directory, /home/michel/.emacs.d/elpher-certificates

----------------

Press 'u' to return to the previous page.
```

Fix by creating the directory unless it exists in
`elpher-list-existing-certificates`.

Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>
elpher.el