core: Fix regression in previous commit
This commit is contained in:
1 parent
4436ed34d8
commit
b4d408f483
1 file changed
+4
-1
@@ -60,7 +60,10 @@ ot_gfile_ensure_directory (GFile *dir,
|
|||||||
if (with_parents)
|
if (with_parents)
|
||||||
{
|
{
|
||||||
ot_lobj GFile *parent = g_file_get_parent (dir);
|
ot_lobj GFile *parent = g_file_get_parent (dir);
|
||||||
ret = ot_gfile_ensure_directory (parent, TRUE, &temp_error);
|
if (parent)
|
||||||
|
ret = ot_gfile_ensure_directory (parent, TRUE, &temp_error);
|
||||||
|
else
|
||||||
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ret = g_file_make_directory (dir, NULL, &temp_error);
|
ret = g_file_make_directory (dir, NULL, &temp_error);
|
||||||
|
|||||||
Reference in new issue
Block a user