HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/certbot/compat/__pycache__/os.cpython-39.pyc
a

�`�#�@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.

�)�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
�3/usr/lib/python3/dist-packages/certbot/compat/os.py�chmod?srcOstd��dS)rzPUsage of os.umask() is forbidden. Use certbot.compat.filesystem.umask() instead.Nrr	r
r
r�umaskIsr
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�chownRsrcOs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�mkdiresrcOstd��dS)z!Method os.makedirs() is forbiddenzVUsage of os.makedirs() is forbidden. Use certbot.compat.filesystem.makedirs() instead.Nrr	r
r
r�makedirspsrcOstd��dS)zMethod os.rename() is forbiddenzSUsage of os.rename() is forbidden. Use certbot.compat.filesystem.replace() instead.Nrr	r
r
r�renamexsrcOs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