M/e'% VdZddlmZddlddlZddlZejeZ ejjddk(s(e eD]Z ee e r ee e eee ddlmZeejedz<[ [[d Zd Zd Zd Zd ZdZdZdZdZdZdZdZy)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_DOCS1)_pathz.pathctd)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.pychmodrB H IIctd)r zPUsage of os.umask() is forbidden. Use certbot.compat.filesystem.umask() instead.r r s rumaskrLrrctd)zMethod os.chown() is forbiddenzgUsage of os.chown() is forbidden.Use certbot.compat.filesystem.copy_ownership_and_apply_mode() instead.r r s rchownrUs ` aarctd)zMethod os.open() is forbiddenzNUsage of os.open() is forbidden. Use certbot.compat.filesystem.open() instead.r r s ropenr`s G HHrctd)zMethod os.mkdir() is forbiddenzPUsage of os.mkdir() is forbidden. Use certbot.compat.filesystem.mkdir() instead.r r s rmkdirrhrrctd)z!Method os.makedirs() is forbiddenzVUsage of os.makedirs() is forbidden. Use certbot.compat.filesystem.makedirs() instead.r r s rmakedirsrs K LLrctd)zMethod os.rename() is forbiddenzSUsage of os.rename() is forbidden. Use certbot.compat.filesystem.replace() instead.r r s rrenamer{ J KKrctd)z Method os.replace() is forbiddenzTUsage of os.replace() is forbidden. Use certbot.compat.filesystem.replace() instead.r r s rreplacer"r rctd)zMethod 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 raccessr$s L MMrctd)Method os.stat() is forbiddenzUsage of os.stat() is forbidden. Use certbot.compat.filesystem functions instead (eg. has_min_permissions, has_same_ownership).r r s rstatr' H IIrctd)r&zUsage of os.fstat() is forbidden. Use certbot.compat.filesystem functions instead (eg. has_min_permissions, has_same_ownership).r r s rfstatr*r(rctd)z!Method os.readlink() is forbiddenzVUsage of os.readlink() is forbidden. Use certbot.compat.filesystem.realpath() instead.r r s rreadlinkr,rr) __doc__ __future__rosstd_ossysstd_sysmodules__name__ ourselvesenvirongetdir attributehasattrsetattrgetattrcertbot.compatrpathrrrrrrrr"r$r'r*r,rrr@s $'   OOH % ~~.)S0[F y), Iy'&)*D E F)&*7"#vw IIaHILKKMIILr