
    LKin                         S SK r S\S\4S jrg)    N	directoryreturnc                 *   Sn[         R                  " U 5       Hv  u  p#nU Hj  n[         R                  R                  X%5      n[         R                  R	                  U5      (       a  MH  U[         R                  R                  U5      -  nMl     Mx     U$ )z
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          Z/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/chromadb/utils/directory.pyget_directory_sizer      so     J!#!3IAg)B77>>"%%bggoob11
	  "4     )r   strintr    r   r   <module>r      s    	# # r   