Ë
    lQêjn  ã                   ó   — d dl Z dedefd„Zy)é    NÚ	directoryÚreturnc                 ó  — d}t        j                  | «      D ]o  \  }}}|D ]d  }t         j                  j                  ||«      }t         j                  j	                  |«      rŒC|t         j                  j                  |«      z  }Œf Œq |S )a   
    Calculate the total size of the directory by walking through each file.

    Parameters:
    directory (str): The path of the directory for which to calculate the size.

    Returns:
    total_size (int): The total size of the directory in bytes.
    r   )ÚosÚwalkÚpathÚjoinÚislinkÚgetsize)r   Ú
total_sizeÚdirpathÚ_Ú	filenamesÚfÚfps          ú]/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/chromadb/utils/directory.pyÚget_directory_sizer      sz   € ð €JÜ!#§¡¨Ó!3ò 2Ñˆ��IØò 	2ˆAÜ—‘—‘˜g qÓ)ˆBä—7‘7—>‘> "Õ%ØœbŸg™gŸo™o¨bÓ1Ñ1‘
ñ		2ð2ð Ðó    )r   ÚstrÚintr   © r   r   ú<module>r      s   ðÛ 	ð #ð ¨#ô r   