mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
Throw exception if binary folder not specified
This commit is contained in:
parent
b1eb8da6a9
commit
af47c9ae94
1 changed files with 5 additions and 0 deletions
|
|
@ -55,6 +55,11 @@ internal class FFbinariesService
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
internal static IEnumerable<string> ExtractZipAndSave(Stream zipStream)
|
internal static IEnumerable<string> ExtractZipAndSave(Stream zipStream)
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(GlobalFFOptions.Current.BinaryFolder))
|
||||||
|
{
|
||||||
|
throw new FFMpegDownloaderException("Binary folder not specified");
|
||||||
|
}
|
||||||
|
|
||||||
using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read);
|
using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read);
|
||||||
List<string> files = new();
|
List<string> files = new();
|
||||||
foreach (var entry in archive.Entries)
|
foreach (var entry in archive.Entries)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue