node/lib/metasm/metasm/preprocessor.rb
def file_exist_nocase(name)
		componants = name.tr('\\', '/').split('/')
		if componants[0] == ''
			ret = '/'
			componants.shift
		else
			ret = './'
		end
		componants.each { |cp|
			return if not ccp = Dir.entries(ret).find { |ccp_| ccp_.downcase == cp.downcase }
			ret = File.join(ret, ccp)
		}
		ret
	end
# checks if a file exists
# search for case-insensitive variants of the path
# returns the match if found, or nil
checks if a file exists
search for case-insensitive variants of the path
returns the match if found, or nil
checks if a file exists search for case - insensitive variants of the path returns the match if found or nil
def file_exist_nocase(name)
		componants = name.tr('\\', '/').split('/')
		if componants[0] == ''
			ret = '/'
			componants.shift
		else
			ret = './'
		end
		componants.each { |cp|
			return if not ccp = Dir.entries(ret).find { |ccp_| ccp_.downcase == cp.downcase }
			ret = File.join(ret, ccp)
		}
		ret
	end
def file_exist_nocase ( name ) componants = name . tr ( '\\' , '/' ) . split ( '/' ) if componants [ 0 ] == '' ret = '/' componants . shift else ret = './' end componants . each { | cp | return if not ccp = Dir . entries ( ret ) . find { | ccp_ | ccp_ . downcase == cp . downcase } ret = File . join ( ret , ccp ) } ret end
checks if a file exists
search for case-insensitive variants of the path
returns the match if found, or nil
checks if a file exists search for case - insensitive variants of the path returns the match if found or nil
name