§
    ˜Štjn  ã                   ó   — d dl Z dedefd„ZdS )é    NÚ	directoryÚreturnc                 ó  — d}t          j        | ¦  «        D ]l\  }}}|D ]c}t           j                             ||¦  «        }t           j                             |¦  «        s"|t           j                             |¦  «        z  }ŒdŒm|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          úV/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/chromadb/utils/directory.pyÚget_directory_sizer      s‰   € ð €JÝ!#¤¨Ñ!3Ô!3ð 2ð 2Ñˆ��IØð 	2ð 	2ˆAÝ”—’˜g qÑ)Ô)ˆBå”7—>’> "Ñ%Ô%ð 2Ø�bœgŸošo¨bÑ1Ô1Ñ1�
øð		2ð Ðó    )r   ÚstrÚintr   © r   r   ú<module>r      s:   ðØ 	€	€	€	ð #ð ¨#ð ð ð ð ð ð r   