😎优化数据库备份路径判断
This commit is contained in:
parent
2d61649a55
commit
0eb5fe57bf
@ -30,6 +30,8 @@ public class SysDbBackupService : IDynamicApiController, ITransient
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (!Directory.Exists(backupDir))
|
||||||
|
Directory.CreateDirectory(backupDir);
|
||||||
var fileList = Directory.GetFiles(backupDir);
|
var fileList = Directory.GetFiles(backupDir);
|
||||||
|
|
||||||
var dbBackupList = new List<DbBackupOutput>();
|
var dbBackupList = new List<DbBackupOutput>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user