Path.chmod#

Path.chmod(mode, *, follow_symlinks=True)#

Change the permissions of the path, like os.chmod().