anchor.diff:  
                       if authenticated && verbose then
                           tracefn "Downloading from %O to %s" !downloadUrl targetFileName
  -                    let dir = Path.GetDirectoryName targetFileName
  -                    if Directory.Exists dir |> not then Directory.CreateDirectory dir |> ignore
  +
  +                    ensureDir targetFileName
   
                       use trackDownload = Profile.startCategory Profile.Category.NuGetDownload
   
  
positive.code:             CleanDir p
          | _ -> ()
  
      let rec getFromCache (caches:Cache list) =
          match caches with
          | cache::rest ->
  
negative.code:                     let nupkg = NuGetLocal.findLocalPackage di.FullName packageName version
  
                      use _ = Profile.startCategory Profile.Category.FileIO
                      ensureDir targetFileName
                      File.Copy(nupkg.FullName,targetFileName,true)
                  | _ ->
                  // discover the link on the fly
  