Update test dir path
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user