summaryrefslogtreecommitdiff
path: root/libjuicer/sj-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'libjuicer/sj-util.c')
-rw-r--r--libjuicer/sj-util.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/libjuicer/sj-util.c b/libjuicer/sj-util.c
index 17fa3c7..ea02355 100644
--- a/libjuicer/sj-util.c
+++ b/libjuicer/sj-util.c
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright (C) 2003-2005 Ross Burton <ross@burtonini.com>
*
* Sound Juicer - sj-util.c
@@ -38,26 +38,26 @@ make_directory_with_parents (GFile *file,
if (g_cancellable_set_error_if_cancelled (cancellable, error))
return FALSE;
-
+
result = g_file_make_directory (file, cancellable, &my_error);
- if (result || my_error->code != G_IO_ERROR_NOT_FOUND)
+ if (result || my_error->code != G_IO_ERROR_NOT_FOUND)
{
if (my_error)
g_propagate_error (error, my_error);
return result;
}
-
+
work_file = file;
-
- while (!result && my_error->code == G_IO_ERROR_NOT_FOUND)
+
+ while (!result && my_error->code == G_IO_ERROR_NOT_FOUND)
{
g_clear_error (&my_error);
-
+
parent_file = g_file_get_parent (work_file);
if (parent_file == NULL)
break;
result = g_file_make_directory (parent_file, cancellable, &my_error);
-
+
if (!result && my_error->code == G_IO_ERROR_NOT_FOUND)
list = g_list_prepend (list, parent_file);
@@ -68,20 +68,20 @@ make_directory_with_parents (GFile *file,
{
result = g_file_make_directory ((GFile *) l->data, cancellable, &my_error);
}
-
+
/* Clean up */
- while (list != NULL)
+ while (list != NULL)
{
g_object_unref ((GFile *) list->data);
list = g_list_remove (list, list->data);
}
- if (!result)
+ if (!result)
{
g_propagate_error (error, my_error);
return result;
}
-
+
return g_file_make_directory (file, cancellable, error);
}