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
resultHashResultrequestedIReadOnlyList<string>
Returns
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
sourcePathstringrequestedIReadOnlyList<string>
Returns
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
listedIReadOnlyList<string>