trivial: fu-common: don't mention making directories unless they don't exist

This commit is contained in:
Mario Limonciello 2020-09-28 15:20:07 -05:00 committed by Mario Limonciello
parent c7cf40ebda
commit d4155ff673

View File

@ -163,7 +163,8 @@ fu_common_mkdir_parent (const gchar *filename, GError **error)
g_autofree gchar *parent = NULL; g_autofree gchar *parent = NULL;
parent = g_path_get_dirname (filename); 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) { if (g_mkdir_with_parents (parent, 0755) == -1) {
g_set_error (error, g_set_error (error,
FWUPD_ERROR, FWUPD_ERROR,