Improve stream file processing

This commit is contained in:
Perfare
2021-05-28 03:43:32 +08:00
parent d14c232015
commit 46c0e8ffe1
5 changed files with 9 additions and 5 deletions

View File

@ -113,10 +113,11 @@ namespace AssetStudioGUI
int extractedCount = 0;
foreach (var file in fileList)
{
var filePath = Path.Combine(extractPath, file.fileName);
if (!Directory.Exists(extractPath))
var filePath = Path.Combine(extractPath, file.path);
var fileDirectory = Path.GetDirectoryName(filePath);
if (!Directory.Exists(fileDirectory))
{
Directory.CreateDirectory(extractPath);
Directory.CreateDirectory(fileDirectory);
}
if (!File.Exists(filePath))
{