INNER CODE UNIT · Python

curr_start

steineggerlab/foldcomp · foldcomp/setup.py:30

                curr_start = start + f.tell()
                if curr_start < end:
                    continue
            break


async def download(url, output, chunks=16):
    async with httpx.AsyncClient(follow_redirects=True) as client:
        file_size = await get_size(client, url)
        if file_size == -1:
            return

        # check that file is not already downloaded
        if os.path.exists(output) and os.path.getsize(output) == file_size:
            return

        # create chunks amount of ranges based on file_size
        ranges = []

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…