Method: Zabel.zabel_get_file_md5
- Defined in:
- lib/zabel.rb
.zabel_get_file_md5(file) ⇒ Object
191 192 193 194 195 196 197 198 |
# File 'lib/zabel.rb', line 191 def self.zabel_get_file_md5(file) if $zabel_file_md5_hash.has_key? file return $zabel_file_md5_hash[file] end md5 = Digest::MD5.hexdigest(File.read(file)) $zabel_file_md5_hash[file] = md5 return md5 end |