HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //snap/core20/current/usr/share/subiquity/subiquitycore/__pycache__/file_util.cpython-38.pyc
U

K��^@�@s*ddlZddlZddlZdZddd�ZdS)�Ni��wbFc
Cs�|dkrt}|r@zt�|�}t�|j�}Wntk
r>YnXd}zJtjtj�	|�d|d�}|�
|�|��t�|j
|�t�|j
|�Wn:tk
r�}z|dk	r�t�|j
�|�W5d}~XYnXdS)zbAtomically write filename.
    open filename in mode 'omode', write content, chmod to 'mode'.
    NF)�dir�delete�mode)�
_DEF_PERMS�os�stat�S_IMODE�st_mode�OSError�tempfileZNamedTemporaryFile�path�dirname�write�close�chmod�name�rename�unlink)�filenameZcontentrZomodeZ	copy_modeZ	file_statZtf�e�r�//usr/share/subiquity/subiquitycore/file_util.py�
write_files,
�
r)NrF)rrrrrrrrr�<module>s