This commit is contained in:
jianzhichu
2025-12-30 12:25:52 +08:00
parent 66bd441378
commit d02a784c1b
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -62,13 +62,13 @@ namespace dy.net.extension
private static string CreateSqliteDBConn(string dbPath="")
{
Serilog.Log.Debug($"dbpath{dbPath}");
string fileFloder= Path.Combine(Environment.CurrentDirectory, "db");
if (!string.IsNullOrEmpty(dbPath))
{
fileFloder= Path.Combine(dbPath, "db");
}
Serilog.Log.Debug($"fn--dbpath{dbPath}");
}
if (!Directory.Exists(fileFloder))
{
Directory.CreateDirectory(fileFloder);