title: how to get the file download url
body: <p>Hi i'm wandering to make some more beautiful searcheable and reliable file list in my drive.</p>
  
  <p>I make a <code>fileVar.getDownloadUrl()</code> but when i print that to the html the link is not there.
  I checked with Logger.log() and the url doesn't logs.</p>
  
  <p>getUrl() does work, buy i need also the download.</p>
  
  <p>¿some ideas?</p>
  
  <p><strong>code .gs</strong></p>
  
  <pre><code>function getRecFol(folId){
     var l = [];
     var fol = DriveApp.getFolderById(folId);
     var arch = fol.getFiles();
  
     while (arch.hasNext()){
        var a = arch.next();
        //Logger.log(a.getId());
        l.push(a.getId());    
     }// fin primera parte
     //segunda parte.
     //Logger.log(resultado);
     var fols = fol.getFolders();
     var l2 = [];
     while (fols.hasNext()){
        var a = fols.next();
        //Logger.log('folder:');
        //Logger.log(a);
        var b = getRecFol(a.getId());
     for (var i = 0;i &lt; b.length;i++){
        l2.push(b[i]);
     }
     }
     for (var i = 0;i &lt; l2.length;i++){
        l.push(l2[i]);
     }
  // Logger.log(resultado !=[]);
     return l;
  }
  /* TIPO PARA EL OBJETO CON LA INFORMACION PARA EL HTML */
  function listedFile(id,title,tipe,description,fold,update,vision,descarga){
     this.id = id;
     this.title = title;
     this.tipe = tipe;
     this.description = description;
     this.fold = fold;
     this.update = update;
     this.descarga = descarga;
     this.vision = vision;
  }
  
  function getData(){
  
     var listaF = getRecFol('IdFolder');
     var listaO = [];
     for (var i = 0; i &lt; listaF.length ;i++){
     var f = DriveApp.getFileById(listaF[i]);
     f.getDownloadUrl();
     var o = new listedFile(listaF[i],f.getName(),f.getMimeType(),f.getDescription(),f.getParents(),f.getLastUpdated(),f.getUrl(),f.getDownloadUrl());
     Logger.log(o.description);
     listaO.push(o);  
   }
   return listaO;
     }
  
  
  
     function doGet(){
       return HtmlService
       .createTemplateFromFile('index')
       .evaluate();
     };
  </code></pre>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
      Hello, world!
      &lt;ol&gt;
      &lt;? var lista = getData();
      for (var i = 0; i &lt; lista.length; i++){ ?&gt;
          &lt;li&gt;
             &lt;a href="&lt;?= lista[i].descarga ?&gt;"&gt;&lt;?= lista[i].title  ?&gt;&lt;/a&gt; - &lt;a href="&lt;?= lista[i].vision ?&gt;"&gt; VER &lt;/a&gt;
          &lt;/li&gt;
          &lt;ul&gt;
             &lt;li&gt;&lt;?= lista[i].description ?&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;? } ?&gt;
      &lt;/ol&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>