# File lib/chef_zero/data_store/memory_store_v2.rb, line 138 def exists?(path, options = {}) begin value = _get(path) if value.is_a?(Hash) && !options[:allow_dirs] raise "exists? does not work with directories (#{path} = #{dir.class})" end return true rescue DataNotFoundError return false end end