mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 10:09:59 +00:00
trivial: fu-common: don't mention making directories unless they don't exist
This commit is contained in:
parent
c7cf40ebda
commit
d4155ff673
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user