diff --git a/IOB-WIN-NEXT/IobGeneric.cs b/IOB-WIN-NEXT/IobGeneric.cs index e845728a..7312a5bd 100644 --- a/IOB-WIN-NEXT/IobGeneric.cs +++ b/IOB-WIN-NEXT/IobGeneric.cs @@ -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");