Ë
    ¸­ h�  ã                   ó    — d dl Z dd„Zd„ Zd„ Zy)é    Nc                 óv   — t        j                  | «      st        | |«       t        j                  | «      xs |S )zŒ
    Read file at the specified path.
    If file doesn't exist, it will be created with default-content.
    Returns the file content.
    )ÚfsutilÚexistsÚ
write_fileÚ	read_file)ÚfilepathÚdefault_contents     úQ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/maintenance_mode/io.pyr   r      s0   € ô �=‰=˜Ô"Ü�8˜_Ô-Ü×Ñ˜HÓ%Ò8¨Ð8ó    c                 óŠ   — t        j                  | «      \  }}t        j                  |«      }t        j                  | |«       y)z_
    Sets the file permissions by inheriting
    them from the directory that contains it.
    N)r   Úsplit_filepathÚget_permissionsÚset_permissions)r   ÚdirpathÚ_Údirpath_permissionss       r
   Úset_file_permissionsr      s:   € ô
 ×&Ñ& xÓ0�J€GˆQÜ ×0Ñ0°Ó9ÐÜ
×Ñ˜8Ð%8Õ9r   c                 óJ   — t        j                  | |d¬«       t        | «       y)zd
    Write file at the specified path with content.
    If file exists, it will be overwritten.
    T)ÚatomicN)r   r   r   )r   Úcontents     r
   r   r      s   € ô
 ×Ñ�h °Õ5Ü˜Õ"r   )Ú )r   r   r   r   © r   r
   ú<module>r      s   ðÛ ó9ò:ó#r   