[longomatch/win32] Force overwrite old backup file, if exists



commit 5a19081d31a685438cf4fa259d1820f9f4041b42
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Aug 21 00:34:47 2009 +0200

    Force overwrite old backup file, if exists

 LongoMatch/Compat/0.0/DatabaseMigrator.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Compat/0.0/DatabaseMigrator.cs b/LongoMatch/Compat/0.0/DatabaseMigrator.cs
index aefab15..36c77e7 100644
--- a/LongoMatch/Compat/0.0/DatabaseMigrator.cs
+++ b/LongoMatch/Compat/0.0/DatabaseMigrator.cs
@@ -195,7 +195,7 @@ namespace LongoMatch.Compat
 				catch{}
 			}
 			
-			File.Copy(oldDBFile, oldDBFile+".bak");
+			File.Copy(oldDBFile, oldDBFile+".bak",true);
 			File.Delete(oldDBFile);
 			File.Delete(backupDBFile);
 			



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