
    M/e'%              	       V   d Z ddlmZ ddl ddlZddlZej                  e   Z	ej                  j                  d      dk(  s( ee      D ]  Z ee	e      r ee	e eee              ddlmZ eej                  edz   <   [	[[d	 Zd
 Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zy)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)*NCERTBOT_DOCS1)_pathz.pathc                      t        d      )Method os.chmod() is forbiddenzPUsage of os.chmod() is forbidden. Use certbot.compat.filesystem.chmod() instead.RuntimeErrorunused_argsunused_kwargss     3/usr/lib/python3/dist-packages/certbot/compat/os.pychmodr   B       
 H I I    c                      t        d      )r	   zPUsage of os.umask() is forbidden. Use certbot.compat.filesystem.umask() instead.r
   r   s     r   umaskr   L   r   r   c                      t        d      )zMethod os.chown() is forbiddenzgUsage of os.chown() is forbidden.Use certbot.compat.filesystem.copy_ownership_and_apply_mode() instead.r
   r   s     r   chownr   U   s    
 ` a ar   c                      t        d      )zMethod os.open() is forbiddenzNUsage of os.open() is forbidden. Use certbot.compat.filesystem.open() instead.r
   r   s     r   openr   `   s    
 G H Hr   c                      t        d      )zMethod os.mkdir() is forbiddenzPUsage of os.mkdir() is forbidden. Use certbot.compat.filesystem.mkdir() instead.r
   r   s     r   mkdirr   h   r   r   c                      t        d      )z!Method os.makedirs() is forbiddenzVUsage of os.makedirs() is forbidden. Use certbot.compat.filesystem.makedirs() instead.r
   r   s     r   makedirsr   s       
 K L Lr   c                      t        d      )zMethod os.rename() is forbiddenzSUsage of os.rename() is forbidden. Use certbot.compat.filesystem.replace() instead.r
   r   s     r   renamer   {       
 J K Kr   c                      t        d      )z Method os.replace() is forbiddenzTUsage of os.replace() is forbidden. Use certbot.compat.filesystem.replace() instead.r
   r   s     r   replacer"      r    r   c                      t        d      )zMethod os.access() is forbiddenzUsage of os.access() is forbidden. Use certbot.compat.filesystem.check_mode() or certbot.compat.filesystem.is_executable() instead.r
   r   s     r   accessr$      s    
 L M Mr   c                      t        d      )Method os.stat() is forbiddenzUsage of os.stat() is forbidden. Use certbot.compat.filesystem functions instead (eg. has_min_permissions, has_same_ownership).r
   r   s     r   statr'          
 H I Ir   c                      t        d      )r&   zUsage of os.fstat() is forbidden. Use certbot.compat.filesystem functions instead (eg. has_min_permissions, has_same_ownership).r
   r   s     r   fstatr*      r(   r   c                      t        d      )z!Method os.readlink() is forbiddenzVUsage of os.readlink() is forbidden. Use certbot.compat.filesystem.realpath() instead.r
   r   s     r   readlinkr,      r   r   ) __doc__
__future__r   osstd_ossysstd_sysmodules__name__	ourselvesenvirongetdir	attributehasattrsetattrgetattrcertbot.compatr   pathr   r   r   r   r   r   r   r"   r$   r'   r*   r,    r   r   <module>r@      s   	$ '
   OOH%	 ~~.)S0[ F	 y),Iy'&)*DEF )&*7" # vw IIaHILKKMIILr   