

def _download_files(files, destdir, args, dest_filename=None):
    for project in files:
        for f in files[project]:
            file_desc = f['describe']
            dest = (dest_filename or os.path.join(destdir, file_desc['name'].replace('/', '%2F')))
            download_one_file(project, file_desc, dest, args)

dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/cli/download.py _download_files/original