If g_file_get_parent() unexpectedly failed, we could return
FALSE but with no error.
https://bugzilla.gnome.org/show_bug.cgi?id=680823
- g_clear_error (&my_error);
-
parent_file = g_file_get_parent (work_file);
if (parent_file == NULL)
break;
parent_file = g_file_get_parent (work_file);
if (parent_file == NULL)
break;
+
+ g_clear_error (&my_error);
+
result = g_file_make_directory (parent_file, cancellable, &my_error);
g_object_unref (work_file);
result = g_file_make_directory (parent_file, cancellable, &my_error);
g_object_unref (work_file);