class Creestal::Core::FileEntry

Defined in:

core/file_entry.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, full_path : String, relative_path : String) #

[View source]

Instance Method Detail

def changed? : Bool #

True if the file on disk differs from the baseline set at construction or the last reload!.


[View source]
def content : String #

Pure read — never touches @sha256.


[View source]
def full_path : String #

[View source]
def relative_path : String #

[View source]
def reload! : FileEntry #

Re-baselines the stored hash to the current file contents. Call this after a change has been detected and acted on so that subsequent changed? calls measure from the new baseline.


[View source]
def sha256 : String #

[View source]
def type : String #

[View source]