From d4155ff67352d167bd0a523ac5bf5d0d8e6afb69 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Mon, 28 Sep 2020 15:20:07 -0500 Subject: [PATCH] trivial: fu-common: don't mention making directories unless they don't exist --- libfwupdplugin/fu-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libfwupdplugin/fu-common.c b/libfwupdplugin/fu-common.c index 13db2afa5..12e177d41 100644 --- a/libfwupdplugin/fu-common.c +++ b/libfwupdplugin/fu-common.c @@ -163,7 +163,8 @@ fu_common_mkdir_parent (const gchar *filename, GError **error) g_autofree gchar *parent = NULL; parent = g_path_get_dirname (filename); - g_debug ("creating path %s", parent); + if (!g_file_test (parent, G_FILE_TEST_IS_DIR)) + g_debug ("creating path %s", parent); if (g_mkdir_with_parents (parent, 0755) == -1) { g_set_error (error, FWUPD_ERROR,