a ‚oe'%ã@sðdZddlmZddlTddlZddlZejeZ ej   d¡dksle eƒD] Z ee e ƒsJee e eee ƒƒqJddlmZeejed<[ [[d d „Zd d „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©Z unused_argsZ unused_kwargs©r ú2C:\Program Files\Certbot\pkgs\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 Ús0