Skip to content

Commit 1ad1680

Browse files
committed
fix #438
1 parent 10f4cf2 commit 1ad1680

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Source/FikaAmazonAPI/Services/ReportService.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,13 @@ private async Task<string> GetFileAsync(ReportDocument reportDocument)
225225
}
226226
}
227227

228-
return isCompressionFile ? FileTransform.Decompress(tempFilePath) : tempFilePath;
228+
if (isCompressionFile)
229+
{
230+
var compressionFile = tempFilePath;
231+
tempFilePath = FileTransform.Decompress(tempFilePath);
232+
File.Delete(compressionFile);
233+
}
234+
return tempFilePath;
229235
}
230236

231237
public async void SaveStreamToFileAsync(string fileFullPath, Stream stream)

0 commit comments

Comments
 (0)