getFileUrl(file, mode, type) {
    return (mode === 'GITHUB') ? file['download_url'] : `${type}/${getFilenameFromPath(file.getAttribute('href'))}`;
  }
Get file URL.
@method
@param {object} file - File object.
@returns {string} File URL