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



commit 2e301037b06f904a65941a0513104693ca9820b7
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]