Fix path in file name for Linux.

This commit is contained in:
2025-04-01 20:08:56 -04:00
parent 377132fae6
commit 016a46a7ad

View File

@@ -404,9 +404,8 @@ namespace MarketData.Helper
String strRequest;
String currentWorkingDirectory=Directory.GetCurrentDirectory();
String strExtractFolder=currentWorkingDirectory+"/"+"extracts";
// String strExtractFolder=currentWorkingDirectory+"\\"+"extracts";
String strFileName="API_NY.GDP.MKTP.CD_DS2_V2_USD.zip";
String strPathFileName=currentWorkingDirectory+"\\"+strFileName;
String strPathFileName=currentWorkingDirectory+"/"+strFileName;
sb.Append("http://api.worldbank.org/v2/en/indicator/NY.GDP.MKTP.CD?downloadformat=csv");
strRequest=sb.ToString();
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("Downloading {0} from {1}",strFileName,strRequest));