function updateGCacheContents(gcacheContents, gcacheSummary) {
  var tbody = $('gcache-contents');
  for (var i = 0; i < gcacheContents.length; i++) {
    var entry = gcacheContents[i];
    var tr = document.createElement('tr');

    // Add some suffix based on the type.
    var path = entry.path;
    if (entry.is_directory)
      path += '/';
    else if (entry.is_symbolic_link)
      path += '@';

    tr.appendChild(createElementFromText('td', path));
    tr.appendChild(createElementFromText('td', entry.size));
    tr.appendChild(createElementFromText('td', entry.last_modified));
    tr.appendChild(createElementFromText('td', entry.permission));
    tbody.appendChild(tr);
  }

  $('gcache-summary-total-size').textContent =
      ToMegaByteString(gcacheSummary['total_size']);
}
/**
 * Updates the GCache Contents section.
 * @param {Array} gcacheContents List of dictionaries describing metadata
 * of files and directories under the GCache directory.
 * @param {Object} gcacheSummary Dictionary of summary of GCache.
 */
Updates the GCache Contents section.
@param {Array} gcacheContents List of dictionaries describing metadata
of files and directories under the GCache directory.
@param {Object} gcacheSummary Dictionary of summary of GCache.
Updates the GCache Contents section . @param { Array } gcacheContents List of dictionaries describing metadata of files and directories under the GCache directory . @param { Object } gcacheSummary Dictionary of summary of GCache .
function updateGCacheContents(gcacheContents, gcacheSummary) {
  var tbody = $('gcache-contents');
  for (var i = 0; i < gcacheContents.length; i++) {
    var entry = gcacheContents[i];
    var tr = document.createElement('tr');
    var path = entry.path;
    if (entry.is_directory)
      path += '/';
    else if (entry.is_symbolic_link)
      path += '@';
    tr.appendChild(createElementFromText('td', path));
    tr.appendChild(createElementFromText('td', entry.size));
    tr.appendChild(createElementFromText('td', entry.last_modified));
    tr.appendChild(createElementFromText('td', entry.permission));
    tbody.appendChild(tr);
  }
  $('gcache-summary-total-size').textContent =
      ToMegaByteString(gcacheSummary['total_size']);
}
function updateGCacheContents ( gcacheContents , gcacheSummary ) { var tbody = $ ( 'gcache-contents' ) ; for ( var i = 0 ; i < gcacheContents . length ; i ++ ) { var entry = gcacheContents [ i ] ; var tr = document . createElement ( 'tr' ) ; var path = entry . path ; if ( entry . is_directory ) path += '/' ; else if ( entry . is_symbolic_link ) path += '@' ; tr . appendChild ( createElementFromText ( 'td' , path ) ) ; tr . appendChild ( createElementFromText ( 'td' , entry . size ) ) ; tr . appendChild ( createElementFromText ( 'td' , entry . last_modified ) ) ; tr . appendChild ( createElementFromText ( 'td' , entry . permission ) ) ; tbody . appendChild ( tr ) ; } $ ( 'gcache-summary-total-size' ) . textContent = ToMegaByteString ( gcacheSummary [ 'total_size' ] ) ; }
Updates the GCache Contents section.
Updates the GCache Contents section .
// Add some suffix based on the type.