
    2Yh                     *    d dl Z d dlmZ d dlmZ d Zy)    N)Path)settingsc                      t        dt        j                         } t        j                  | d       | dz  }| dz  }t        j                  |d       t        j                  |d       | S )z2
    Ensure that the uploads directory exists
    z./T)exist_okavatarsfiles)r   r   UPLOADS_DIRosmakedirs)uploads_diravatars_dir	files_dirs      F/var/www/html/wine-match-dev/backend/winematch-backend/src/utils/io.pycreate_uploads_directoryr      sb     H00123KKKd+ 	)Kg%IKKd+KK	D)    )r
   pathlibr   src.core.configr   r    r   r   <module>r      s    	  $r   