Skip to content

Instantly share code, notes, and snippets.

@mp19uy
Created July 3, 2016 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mp19uy/63f30f6fa8e3cfde68f470d31d588a16 to your computer and use it in GitHub Desktop.
Save mp19uy/63f30f6fa8e3cfde68f470d31d588a16 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment