fixes
This commit is contained in:
parent
83ac08cfd4
commit
1606fd0871
17 changed files with 136 additions and 90 deletions
|
|
@ -53,7 +53,7 @@ namespace Yavsc.Model.Admin
|
|||
}
|
||||
|
||||
private string dbpassword ;
|
||||
private string backupPrefix= "backup/global.backup";
|
||||
private string backupPrefix= "~/backup/global.backup";
|
||||
|
||||
public string BackupPrefix {
|
||||
get {
|
||||
|
|
@ -69,16 +69,6 @@ namespace Yavsc.Model.Admin
|
|||
get { return dbpassword; }
|
||||
set { dbpassword = value; }
|
||||
}
|
||||
|
||||
public string [] GetBackupDirs()
|
||||
{
|
||||
List<string> res = new List<string> ();
|
||||
string bkpdir = new FileInfo (backupPrefix).DirectoryName;
|
||||
DirectoryInfo bkpdiri = new DirectoryInfo(bkpdir);
|
||||
foreach (DirectoryInfo di in bkpdiri.EnumerateDirectories())
|
||||
res.Add (Path.Combine(bkpdir,di.Name));
|
||||
return res.ToArray ();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue