# File lib/open-uri/cached.rb, line 120
        def mkpath(path)
          full = []
          dirs = path.split('/'); dirs.pop
          dirs.each do |dir|
            full.push(dir)
            dir = full.join('/')
            next if dir.to_s == ''
            Dir.mkdir(dir) unless File.exists?(dir)
          end
        end