Skip to content

Commit

Permalink
rm Where(p => p.Value)
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Aug 31, 2024
1 parent 5e346bd commit 92ce35e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,15 +421,16 @@ await _hostFileSystemStorage.WriteStreamAsync(_subPathStorage.ReadStream(subPath
/// </summary>
/// <param name="fullFileParentFolderPath">One folder deeper than where the folder </param>
/// <param name="itemName">blog item name</param>
/// <param name="renderCopyResult"></param>
/// <param name="renderCopyResult">[[string,bool],[]]</param>
/// <param name="deleteFolderAfterwards"></param>
public async Task GenerateZip(string fullFileParentFolderPath, string itemName,
Dictionary<string, bool>? renderCopyResult,
bool deleteFolderAfterwards = false)
{
ArgumentNullException.ThrowIfNull(renderCopyResult);

var fileNames = renderCopyResult.Where(p => p.Value).Select(p => p.Key).ToList();
// to keep non publish files out use Where(p => p.Value)
var fileNames = renderCopyResult.Select(p => p.Key).ToList();

var slugItemName = GenerateSlugHelper.GenerateSlug(itemName, true);
var filePaths = fileNames
Expand Down

0 comments on commit 92ce35e

Please sign in to comment.