Update fastlib to include the file existence check

unstable
HD Moore 2011-11-21 14:21:27 -06:00
parent bfc32f4a0f
commit a6205b1951
1 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,7 @@ end
#
class FastLib
VERSION = "0.0.3"
VERSION = "0.0.4"
@@cache = {}
@ -141,6 +141,9 @@ class FastLib
def self.load_cache(lib)
return if @@cache[lib]
dict = {}
return if not ::File.exists?(lib)
::File.open(lib, 'rb') do |fd|
head = fd.read(4)
return if head != "FAST"