[chronojump] backupDir references now called backupDirOld
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] backupDir references now called backupDirOld
- Date: Fri, 20 Aug 2021 13:27:50 +0000 (UTC)
commit 940e6df47c44e29416bcad95acb71e36052b2531
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Aug 20 15:25:13 2021 +0200
backupDir references now called backupDirOld
src/util.cs | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/src/util.cs b/src/util.cs
index c4a174f83..4d95b2c12 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -1359,11 +1359,18 @@ public class Util
return GetImagesDir();
}
- static string backupDir = GetDatabaseDir() + Path.DirectorySeparatorChar + "backup";
+ //previous to 2.1.3
+ static string backupDirOld = GetDatabaseDir() + Path.DirectorySeparatorChar + "backup";
+ public static string GetBackupDirOld () {
+ return backupDirOld;
+ }
+
+ /*
+ Unused since 2.1.3
- public static void BackupDirCreateIfNeeded () {
- if( ! Directory.Exists(backupDir)) {
- Directory.CreateDirectory (backupDir);
+ public static void BackupDirOldCreateIfNeeded () {
+ if( ! Directory.Exists(backupDirOld)) {
+ Directory.CreateDirectory (backupDirOld);
LogB.Information ("created backup dir");
}
}
@@ -2518,7 +2525,7 @@ public class UtilCopy
private bool backup;
//to go faster on CopyFilesRecursively
- static string backupDir = Util.GetDatabaseDir() + Path.DirectorySeparatorChar + "backup";
+ static string backupDirOld = Util.GetBackupDirOld();
//-1 is the default on a backup, means all sessions (regular backup)
//4 will only copy files related to session 4 (for export session)
@@ -2540,7 +2547,7 @@ public class UtilCopy
{
DirectoryInfo [] diArray = source.GetDirectories();
foreach (DirectoryInfo dir in diArray)
- if(dir.ToString() != backupDir) //do not copy backup files
+ if(dir.ToString() != backupDirOld) //do not copy backup files
{
if(level == 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]