Table of Contents

Class PrimaryActionPolicy

Namespace
Archiver.App.Core
Assembly
Archiver.App.Core.dll

T-F199 (option A, user decision 2026-09-27): two action buttons, the accent on the one that fits the list — archives only: Extract, anything else: Compress. T-F212: Extract runs only on items that are archives Pakko may open; canOpen is Core's ArchiveFormatPolicy.CanOpenByExtension (policy, tar.exe, no disk I/O).

public static class PrimaryActionPolicy
Inheritance
PrimaryActionPolicy
Inherited Members

Methods

Evaluate(IReadOnlyList<(string Path, bool IsFolder)>, Func<string, bool>)

Evaluates the list.

public static ListActions Evaluate(IReadOnlyList<(string Path, bool IsFolder)> items, Func<string, bool> canOpen)

Parameters

items IReadOnlyList<(string Path, bool IsFolder)>
canOpen Func<string, bool>

Returns

ListActions