application/Espo/Core/Utils/File/Permission.php
public function chown($path, $user = '', $recurse = false)
    {
        if (!file_exists($path)) {
            return false;
        }

        if (empty($user)) {
            $user = $this->getDefaultOwner();
        }

        //Set chown for non-recursive request
        if (!$recurse) {
            return $this->chownReal($path, $user);
        }

        //Recursive chown
        return $this->chownRecurse($path, $user);
    }
public function chown($path, $user = '', $recurse = false)
    {
        if (!file_exists($path)) {
            return false;
        }

        if (empty($user)) {
            $user = $this->getDefaultOwner();
        }

        //Set chown for non-recursive request
        if (!$recurse) {
            return $this->chownReal($path, $user);
        }

        //Recursive chown
        return $this->chownRecurse($path, $user);
    }
public function chown ( $ path , $ user = '' , $ recurse = false ) { if ( ! file_exists ( $ path ) ) { return false ; } if ( empty ( $ user ) ) { $ user = $ this -> getDefaultOwner ( ) ; } //Set chown for non-recursive request if ( ! $ recurse ) { return $ this -> chownReal ( $ path , $ user ) ; } //Recursive chown return $ this -> chownRecurse ( $ path , $ user ) ; }
Change owner permission

@param string $path
@param int | string $user
@param bool $recurse

@return bool
Change owner permission