Skip to content

Instantly share code, notes, and snippets.

def liquid_info_for_file(dir, filename)
path = File.join(filename)
{
"path" => path,
"modified_time" => File.mtime(path).to_i,
"extname" => File.extname(path)
}
end