3 گa'%@sdZddlmZddlTddlZddlZejeZ ej j ddkspx,e eD] Z ee e sLee e eee qLWddlmZeejed<[ [[d d Zd d Zd dZddZddZddZddZddZddZddZddZdd 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_DOCS1)_pathz.pathcOs tddS)zMethod os.chmod() is forbiddenzPUsage of os.chmod() is forbidden. Use certbot.compat.filesystem.chmod() instead.N) RuntimeError) unused_args unused_kwargsr /usr/lib/python3.6/os.pychmodBsr cOs tddS)zMethod os.chmod() is forbiddenzPUsage of os.umask() is forbidden. Use certbot.compat.filesystem.umask() instead.N)r)rrr r r umaskLsr cOs tddS)zMethod os.chown() is forbiddenzgUsage of os.chown() is forbidden.Use certbot.compat.filesystem.copy_ownership_and_apply_mode() instead.N)r)rrr r r chownUsr cOs tddS)zMethod os.open() is forbiddenzNUsage of os.open() is forbidden. Use certbot.compat.filesystem.open() instead.N)r)rrr r r open`srcOs tddS)zMethod os.mkdir() is forbiddenzPUsage of os.mkdir() is forbidden. Use certbot.compat.filesystem.mkdir() instead.N)r)rrr r r mkdirhsrcOs tddS)z!Method os.makedirs() is forbiddenzVUsage of os.makedirs() is forbidden. Use certbot.compat.filesystem.makedirs() instead.N)r)rrr r r makedirsssrcOs tddS)zMethod os.rename() is forbiddenzSUsage of os.rename() is forbidden. Use certbot.compat.filesystem.replace() instead.N)r)rrr r r rename{srcOs tddS)z Method os.replace() is forbiddenzTUsage of os.replace() is forbidden. Use certbot.compat.filesystem.replace() instead.N)r)rrr r r replacesrcOs tddS)zMethod os.access() is forbiddenzUsage of os.access() is forbidden. Use certbot.compat.filesystem.check_mode() or certbot.compat.filesystem.is_executable() instead.N)r)rrr r r accesssrcOs tddS)zMethod os.stat() is forbiddenzUsage of os.stat() is forbidden. Use certbot.compat.filesystem functions instead (eg. has_min_permissions, has_same_ownership).N)r)rrr r r statsrcOs tddS)zMethod os.stat() is forbiddenzUsage of os.fstat() is forbidden. Use certbot.compat.filesystem functions instead (eg. has_min_permissions, has_same_ownership).N)r)rrr r r fstatsrcOs tddS)z!Method os.readlink() is forbiddenzVUsage of os.readlink() is forbidden. Use certbot.compat.filesystem.realpath() instead.N)r)rrr r r readlinksr) __doc__Z __future__rosZstd_ossysZstd_sysmodules__name__Z ourselvesenvirongetdirZ attributehasattrsetattrgetattrZcertbot.compatrpathr r r rrrrrrrrrr r r r  s0