struct

Verisum::FileRecord

Inherits Struct < Value < Object

Define a FileRecord structure to store the checksum and file path

Constructors

new(checksum : String, filepath : Path)
Source

Instance methods

checksum
Source
filepath
Source
guess_algorithm

Returns the algorithm used to calculate the checksum based on the checksum pattern

Source
to_s(io) : Nil

Return the string representation of the FileRecord If the file path is "-", return only the checksum (for standard input)

Source