 
   fix_cache cache,0
 
-fix_relative_url = (url,path) ->
-  resolve_url url, path
-
 check_html_file = (cache,ix,file) ->
   si = file.path.lastIndexOf '/'
   ei = file.path.lastIndexOf '.'

    hidden = is_hidden entry
    # atom enclosures
    for link in entry.link when link.$.href? and (link.$.rel == 'alternate' or not hidden)
      add_fileurl link.$.href, fileurls
    # media-rss media:thumbnail
    for thumbnail in (entry['media:thumbnail'] ? []) when thumbnail.$.url?
      add_fileurl thumbnail.$.url, fileurls
  console.dir fileurls
 


# maps domain name elements and path elements to folders
get_cache_path = (url) ->
  url = parse_url url
  # hostname, port, path (includes query), hash
  hs = if url.hostname? then url.hostname.split '.' else []
  # reverse non-IP order
  number = /^[0-9]+$/
  ns = 0
