# File lib/amazon/search/cache.rb, line 27
      def initialize(path)
        ::FileUtils::mkdir_p(path) unless File.exists?(path)

        unless File.directory?(path)
          raise PathError, "cache path #{path} is not a directory"
        end

        unless File.readable?(path)
          raise PathError, "cache path #{path} is not readable"
        end

        unless File.writable?(path)
          raise PathError, "cache path #{path} is not writable"
        end

        @path = path
      end