in Core/src/Impl/Commands/AccessUtil.cs [82:92]
public static IStorage GetStorage(string? dir, string? zip, string? awsS3BucketName, string? awsS3RegionEndpoint,
StorageAccessMode accessMode, int? concurrencyLevel)
{
if (!string.IsNullOrEmpty(dir) && string.IsNullOrEmpty(zip) && string.IsNullOrEmpty(awsS3BucketName))
return GetFileSystemStorage(dir);
if (string.IsNullOrEmpty(dir) && !string.IsNullOrEmpty(zip) && string.IsNullOrEmpty(awsS3BucketName))
return GetZipArchiveStorage(zip, accessMode, concurrencyLevel);
if (string.IsNullOrEmpty(dir) && string.IsNullOrEmpty(zip) && !string.IsNullOrEmpty(awsS3BucketName))
return GetAwsS3Storage(awsS3BucketName, awsS3RegionEndpoint ?? DefaultAwsS3RegionEndpoint);
throw new Exception("The storage location option should be defined");
}