struct Verisum::FileRecord

Overview

Define a FileRecord structure to store the checksum and file path

Defined in:

verisum/file_record.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(checksum : String, filepath : Path) #

[View source]

Instance Method Detail

def checksum : String #

[View source]
def filepath : Path #

[View source]
def guess_algorithm : Algorithm #

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


[View source]
def to_s(io) : Nil #

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


[View source]