| Server IP : 3.7.136.76 / Your IP : 216.73.216.142 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-39-148 7.0.0-1010-aws #10~24.04.1-Ubuntu SMP PREEMPT Mon Jul 27 17:41:33 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /snap/core22/current/usr/share/subiquity/subiquitycore/__pycache__/ |
Upload File : |
o
K��^� � @ s` d dl Z d dlZd dlZd dlZd dlZd dlZdZdZe jdd�dd��Z dd� Z
d d
� ZdS )� Ni� �adm)�cmodec
c s� � |d u rt }d }z?tj�| �}tj|dd� tj|ddd�}|V |�� t�|j |� t�
� dkr?t�|j dt�
t�j� t�|j | � W d S ty` } z|d urZt�|j � |�d }~ww )NT)�exist_okF�w)�dir�delete�moder ���)�
_DEF_PERMS�os�path�dirname�makedirs�tempfile�NamedTemporaryFile�close�chmod�name�getuid�chown�grp�getgrnam�
_DEF_GROUP�gr_gid�rename�OSError�unlink)�filenamer �tfr
�e� r �//usr/share/subiquity/subiquitycore/file_util.py�
open_perms s( ���r"