Created
July 3, 2016 05:50
-
-
Save mp19uy/63f30f6fa8e3cfde68f470d31d588a16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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