[f-spot/taglib-metadata: 10/29] Make sure the temporary file on writing is removed.



commit 8f6c3b3feee2747e10f356e66e8df21bb5bf6c2a
Author: Ruben Vermeersch <ruben savanne be>
Date:   Tue Jun 15 21:15:06 2010 +0200

    Make sure the temporary file on writing is removed.

 src/Utils/GIOTagLibFileAbstraction.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Utils/GIOTagLibFileAbstraction.cs b/src/Utils/GIOTagLibFileAbstraction.cs
index d66c624..3528597 100644
--- a/src/Utils/GIOTagLibFileAbstraction.cs
+++ b/src/Utils/GIOTagLibFileAbstraction.cs
@@ -70,7 +70,7 @@ namespace FSpot.Utils
             var file = FileFactory.NewForUri (Uri);
             var tmp_file = FileFactory.NewForUri (tmp_write_uri);
 
-            tmp_file.Copy (file, GLib.FileCopyFlags.AllMetadata | GLib.FileCopyFlags.Overwrite, null, null);
+            tmp_file.Move (file, GLib.FileCopyFlags.AllMetadata | GLib.FileCopyFlags.Overwrite, null, null);
         }
 
         private SafeUri CreateTmpFile ()



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