Ensure certificate directory exists patch_multiple_buffers
authorMichel Alexandre Salim <michel@michel-slm.name>
Sat, 15 Aug 2020 23:25:23 +0000 (16:25 -0700)
committerAlex Schroeder <alex@gnu.org>
Fri, 28 Aug 2020 09:30:26 +0000 (11:30 +0200)
commiteae5318f4d623309122076cad12402846a91c08c
tree5119e6637b7d3605d209b9276c656aec8d0a0a70
parent4dd1ca426f9a818b4fab67eb3a6b2ceaae6c2acd
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