method: path.local.chown

 change ownership to the given user and group.
            user and group may be specified by a number or
            by a name.  if rec is True change ownership
            recursively.
        
    def chown(self, user, group, rec=0):

origin: PosixMixin

where:

function source:

def chown(self, user, group, rec=0):
    """ change ownership to the given user and group.
            user and group may be specified by a number or
            by a name.  if rec is True change ownership
            recursively.
        """
    uid = getuserid(user)
    gid = getgroupid(group)
    if rec:
        for x in self.visit(rec=lambda x: x.check(link=0)): 
            if x.check(link=0):
                self._callex(os.chown, str(x), uid, gid)
    self._callex(os.chown, str(self), uid, gid)

call sites:

called in /home/johnny/projects/merlinux/py/dist/py/path/local/testing/test_posix.py

traceback path.local.chown.0

called in /home/johnny/projects/merlinux/py/dist/py/path/local/testing/test_posix.py

traceback path.local.chown.1

called in /home/johnny/projects/merlinux/py/dist/py/path/local/testing/test_posix.py

traceback path.local.chown.2