Fix the path names in the GDP Per Capita extract
This commit is contained in:
@@ -36,14 +36,14 @@ namespace MarketData.CSVHelper
|
||||
foreach (ZipArchiveEntry entry in archive.Entries)
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("Extracting {0}", entry.FullName));
|
||||
String strPathFullName = extractToFolder + "\\" + entry.FullName;
|
||||
String strPathFullName = extractToFolder + "/" + entry.FullName;
|
||||
String strDirectoryName = null;
|
||||
if (entry.FullName.Contains('\\') || entry.FullName.Contains('/')) strDirectoryName = Path.GetDirectoryName(entry.FullName);
|
||||
if (null != strDirectoryName)
|
||||
{
|
||||
if (!Directory.Exists(extractToFolder + "\\" + strDirectoryName))
|
||||
if (!Directory.Exists(extractToFolder + "/" + strDirectoryName))
|
||||
{
|
||||
Directory.CreateDirectory(extractToFolder + "\\" + strDirectoryName);
|
||||
Directory.CreateDirectory(extractToFolder + "/" + strDirectoryName);
|
||||
}
|
||||
}
|
||||
if (File.Exists(strPathFullName))
|
||||
|
||||
Reference in New Issue
Block a user