INNER CODE UNIT · Python
fill_metadata
kblin/ncbi-genome-download · ncbi_genome_download/core.py:281
def fill_metadata(jobs, entry, mtable):
"""Fill the metadata table with the info on the downloaded files.
Parameters
----------
jobs: List[DownloadJob]
List of all different file format download jobs for an entry
entry:
An assembly entry describing the current download jobs
mtable:
Metadata table object to write into
Returns
-------
None
"""
for job in jobs:
if job.full_url is not None: # if it is None, it's a symlink making, so nothing to write