]> git.cworth.org Git - notmuch-old/commit
lib/open: refactor call to mkdir into function
authorDavid Bremner <david@tethera.net>
Fri, 29 Jul 2022 12:19:59 +0000 (09:19 -0300)
committerDavid Bremner <david@tethera.net>
Thu, 11 Aug 2022 15:39:45 +0000 (12:39 -0300)
commit85587626690dfef33d318a40981ce822c2b3f5f4
tree7e3aa20bc3fe762b44fd1648adc8b88c6db715b9
parent222279f6d13177fb5dc9b7663cac6264b4637041
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