]> git.notmuchmail.org Git - notmuch/commit
lib/open: refactor call to mkdir into function
authorDavid Bremner <david@tethera.net>
Thu, 28 Jul 2022 10:41:02 +0000 (06:41 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 3 Sep 2022 11:24:43 +0000 (08:24 -0300)
commit25e2790e303b6d9334676e3165a92c6084aa3567
tree4d4a6a2d0016e9f697ca941aa72d59008b162aa7
parent44c9338061ed64797b21b847ce29bcacd7f72886
lib/open: refactor call to mkdir into function

This makes the error handling available for re-use. Using
g_mkdir_with_parents also handles the case of a pre-existing
directory. This introduces new functionality, namely creating the
parent directories, which will be useful for creating directories like
'.local/share/notmuch/default'.
lib/open.cc