Update test dir path

This commit is contained in:
Samuele Locatelli
2022-10-19 15:37:17 +02:00
parent b42f855ffa
commit 5487eff9a0
+13
View File
@@ -14,6 +14,7 @@ using System.IO;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@@ -4680,7 +4681,19 @@ namespace IOB_WIN_NEXT
var dirCreate = ftpClient.createDir(remDir);
lgInfo($"FTP: created remote dir {remDir}");
}
// test directory...
string basePath = Directory.GetCurrentDirectory();
string appStart = Application.StartupPath;
string exePath = Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath);
string sacBaseDir = System.AppContext.BaseDirectory;
lgInfo("--------- DIR TEST -------------");
lgInfo($"basePath: {basePath}");
lgInfo($"appStart: {appStart}");
lgInfo($"exePath: {exePath}");
lgInfo($"sacBaseDir: {sacBaseDir}");
lgInfo("----------------------");
string localPath = Path.Combine(basePath, locDir);
lgInfo($"basePath: {basePath} | localPath: {localPath}");
var fileList = Directory.GetFiles(localPath, "*.csv");