From: David Bremner Date: Thu, 28 Jul 2022 10:41:02 +0000 (-0400) Subject: lib/open: refactor call to mkdir into function X-Git-Tag: 0.38_rc0~80 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;ds=sidebyside;h=25e2790e303b6d9334676e3165a92c6084aa3567;hp=25e2790e303b6d9334676e3165a92c6084aa3567;p=notmuch 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'. ---