Table of Contents

Class HashReport

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

T-F219: what the App's "Hash..." hashes and how its result is named and copied. SHA-256 only (T-F164, user decision, confirmed again for T-F219).

public static class HashReport
Inheritance
HashReport
Inherited Members

Methods

CopyText(HashResult, IReadOnlyList<string>)

The copied text: one "hash name" line per hashed file, sha256sum's layout (a Windows name with backslashes is not guaranteed to verify back with sha256sum -c). Files that failed are left out.

public static string CopyText(HashResult result, IReadOnlyList<string> requested)

Parameters

result HashResult
requested IReadOnlyList<string>

Returns

string

DisplayName(string, IReadOnlyList<string>)

The name a hashed file is shown and copied under: relative to the parent of the listed folder it was found in, else its file name.

public static string DisplayName(string sourcePath, IReadOnlyList<string> requested)

Parameters

sourcePath string
requested IReadOnlyList<string>

Returns

string

SourcesFor(IReadOnlyList<string>)

The pending list's paths, or null when the list is empty and the user picks files.

public static IReadOnlyList<string>? SourcesFor(IReadOnlyList<string> listed)

Parameters

listed IReadOnlyList<string>

Returns

IReadOnlyList<string>