def analyse_storage(cid):
    """
    Parse the num_blocks and content_size info from cid_storage.txt
    :param cid: cid of the object
    :return: number of blocks and the size of the content
    """
    size = 0
    num_blocks = -1
    with open(f'{cid}_storage.txt', 'r') as stdin:
        for line in stdin.readlines():
            # The output of the ipfs dag stat <cid> command is in the form of "Size: 152361, NumBlocks: 1\n"
            if "Size" in line:
                line = line.split(",")
                size = line[0].split(" ")[1]
                num_blocks = line[1].split(" ")[2]
                num_blocks = num_blocks.split("\n")[0]
    return num_blocks, size