mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Fix issue with msbuild zip extraction task
This commit is contained in:
parent
edad34d38f
commit
5fab9e163f
1 changed files with 6 additions and 4 deletions
|
@ -314,13 +314,15 @@
|
|||
foreach (ZipArchiveEntry file in archive.Entries)
|
||||
{
|
||||
string fileName = Path.Combine(destinationDirectory, file.FullName);
|
||||
if (file.Name == String.Empty)
|
||||
string directory = Path.GetDirectoryName(fileName);
|
||||
if (!Directory.Exists(directory))
|
||||
{
|
||||
string directory = Path.GetDirectoryName(fileName);
|
||||
Directory.CreateDirectory(directory);
|
||||
continue;
|
||||
}
|
||||
file.ExtractToFile(fileName, true);
|
||||
if (file.Name != String.Empty)
|
||||
{
|
||||
file.ExtractToFile(fileName, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue