From e8054ecaced5185c6c5a921cc678330590b52a3f Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 7 Feb 2001 03:31:10 +0000 Subject: Create the local directory when saving if it doesn't exist already. 2001-02-06 Christopher James Lahey * gal-view-collection.c (gal_view_collection_save): Create the local directory when saving if it doesn't exist already. svn path=/trunk/; revision=8043 --- widgets/menus/gal-view-collection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c index 9b1922b102..6b110e2867 100644 --- a/widgets/menus/gal-view-collection.c +++ b/widgets/menus/gal-view-collection.c @@ -328,6 +328,8 @@ gal_view_collection_save (GalViewCollection *collection) xmlNode *root; char *filename; + e_create_directory(collection->local_dir); + doc = xmlNewDoc("1.0"); root = xmlNewNode(NULL, "GalViewCollection"); xmlDocSetRootElement(doc, root); @@ -360,7 +362,6 @@ gal_view_collection_save (GalViewCollection *collection) e_xml_set_string_prop_by_name(child, "id", item->id); e_xml_set_string_prop_by_name(child, "title", item->title); e_xml_set_string_prop_by_name(child, "type", item->type); - } filename = g_concat_dir_and_file(collection->local_dir, "galview.xml"); xmlSaveFile(filename, doc); -- cgit v1.2.3