MOON
Server: Apache
System: Linux mail.espica.me 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: solaraatech (1010)
PHP: 8.2.31
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.9/site-packages/certbot/compat/__pycache__/os.cpython-39.opt-1.pyc
a

}|�g'%�@s�dZddlmZddlTddlZddlZejeZ	ej
�d�dkslee�D] Z
ee	e
�sJee	e
eee
��qJddlmZeejed<[	[[d	d
�Zdd�Zd
d�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd �ZdS)!a�
This compat modules is a wrapper of the core os module that forbids usage of specific operations
(e.g. chown, chmod, getuid) that would be harmful to the Windows file security model of Certbot.
This module is intended to replace standard os module throughout certbot projects (except acme).

This module has the same API as the os module in the Python standard library
except for the functions defined below.

isort:skip_file
�)�absolute_import)�*NZCERTBOT_DOCS�1)�_pathz.pathcOstd��dS)�Method os.chmod() is forbiddenzPUsage of os.chmod() is forbidden. Use certbot.compat.filesystem.chmod() instead.N��RuntimeError�Zunused_argsZ
unused_kwargs�r
�5/usr/lib/python3.9/site-packages/certbot/compat/os.py�chmodBsrcOstd��dS)rzPUsage of os.umask() is forbidden. Use certbot.compat.filesystem.umask() instead.Nrr	r
r
r�umaskLsr
cOstd��dS)zMethod os.chown() is forbiddenzgUsage of os.chown() is forbidden.Use certbot.compat.filesystem.copy_ownership_and_apply_mode() instead.Nrr	r
r
r�chownUsrcOstd��dS)zMethod os.open() is forbiddenzNUsage of os.open() is forbidden. Use certbot.compat.filesystem.open() instead.Nrr	r
r
r�open`srcOstd��dS)zMethod os.mkdir() is forbiddenzPUsage of os.mkdir() is forbidden. Use certbot.compat.filesystem.mkdir() instead.Nrr	r
r
r�mkdirhsrcOstd��dS)z!Method os.makedirs() is forbiddenzVUsage of os.makedirs() is forbidden. Use certbot.compat.filesystem.makedirs() instead.Nrr	r
r
r�makedirsssrcOstd��dS)zMethod os.rename() is forbiddenzSUsage of os.rename() is forbidden. Use certbot.compat.filesystem.replace() instead.Nrr	r
r
r�rename{srcOstd��dS)z Method os.replace() is forbiddenzTUsage of os.replace() is forbidden. Use certbot.compat.filesystem.replace() instead.Nrr	r
r
r�replace�srcOstd��dS)zMethod os.access() is forbiddenz�Usage of os.access() is forbidden. Use certbot.compat.filesystem.check_mode() or certbot.compat.filesystem.is_executable() instead.Nrr	r
r
r�access�srcOstd��dS)�Method os.stat() is forbiddenzUsage of os.stat() is forbidden. Use certbot.compat.filesystem functions instead (eg. has_min_permissions, has_same_ownership).Nrr	r
r
r�stat�srcOstd��dS)rz�Usage of os.fstat() is forbidden. Use certbot.compat.filesystem functions instead (eg. has_min_permissions, has_same_ownership).Nrr	r
r
r�fstat�srcOstd��dS)z!Method os.readlink() is forbiddenzVUsage of os.readlink() is forbidden. Use certbot.compat.filesystem.realpath() instead.Nrr	r
r
r�readlink�sr) �__doc__Z
__future__r�osZstd_os�sysZstd_sys�modules�__name__Z	ourselves�environ�get�dirZ	attribute�hasattr�setattr�getattrZcertbot.compatr�pathrr
rrrrrrrrrrr
r
r
r�<module>s0