[bijiben/gnome-3-14] ownCloud : use create_file before replace_contents



commit 3bc197568858501cc042b83c38e2878d46f981df
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Sun Nov 9 00:24:12 2014 +0100

    ownCloud : use create_file before replace_contents

 src/libbiji/provider/biji-own-cloud-note.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libbiji/provider/biji-own-cloud-note.c b/src/libbiji/provider/biji-own-cloud-note.c
index 7512608..b3568bc 100644
--- a/src/libbiji/provider/biji-own-cloud-note.c
+++ b/src/libbiji/provider/biji-own-cloud-note.c
@@ -244,6 +244,7 @@ create_new_file (BijiOwnCloudNote *self, const gchar *basename)
                basename);
   g_object_set (self->priv->id, "path", key, NULL);
 
+  g_file_create (self->priv->location, G_FILE_CREATE_NONE, NULL, NULL);
   ocloud_note_save (note);
   ocloud_note_ensure_ressource (note);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]