node/lib/metasm/metasm/exe_format/zip.rb
def has_file(fname, lcase=true)
		decode if @files.empty?
		if lcase
			@files.find { |f| f.fname == fname }
		else
			fname = fname.downcase
			@files.find { |f| f.fname.downcase == fname }
		end
	end
# checks if a given file name exists in the archive
# returns the CentralHeader or nil
# case-insensitive if lcase is false
checks if a given file name exists in the archive
returns the CentralHeader or nil
case-insensitive if lcase is false
checks if a given file name exists in the archive returns the CentralHeader or nil case - insensitive if lcase is false
def has_file(fname, lcase=true)
		decode if @files.empty?
		if lcase
			@files.find { |f| f.fname == fname }
		else
			fname = fname.downcase
			@files.find { |f| f.fname.downcase == fname }
		end
	end
def has_file ( fname , lcase = true ) decode if @files . empty? if lcase @files . find { | f | f . fname == fname } else fname = fname . downcase @files . find { | f | f . fname . downcase == fname } end end
checks if a given file name exists in the archive
returns the CentralHeader or nil
case-insensitive if lcase is false
checks if a given file name exists in the archive returns the CentralHeader or nil case - insensitive if lcase is false
fname
lcase