[bijiben] ownCloud : use create_file before replace_contents
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] ownCloud : use create_file before replace_contents
- Date: Sat, 8 Nov 2014 23:24:57 +0000 (UTC)
commit 94840aaf0291a44112d5569cfa80434932d20a36
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]