From: Shashank Date Date: 2002-12-23T03:19:20+09:00 Subject: Re: Quickest way to get md5 of a file? "MikkelFJ" wrote in message > fails on directories though ruby -r digest/md5 -le "ARGV.each{|f| (print f, ' ', Digest::MD5.hexdigest(open(f, 'rb').read)) unless File.stat(f).directory? }" * But this will still fail on files which do not have access, like on my machine (Win XP Pro): ruby 1.7.3 (2002-11-17) [i386-mswin32] -e:1:in `initialize': Permission denied - "hiberfil.sys" (Errno::EACCES) from -e:1:in `open'