'NOTE: this function assumes it runs as the logged-in user:
i.e. under _runAsUser()'

def _setAttrs(self, path, attrs):

    if (('uid' in attrs) and ('gid' in attrs)):
        os.chown(path, attrs['uid'], attrs['gid'])
    if ('permissions' in attrs):
        os.chmod(path, attrs['permissions'])
    if (('atime' in attrs) and ('mtime' in attrs)):
        os.utime(path, (attrs['atime'], attrs['mtime']))
