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

        if (!isset($group)) {
            $group = $this->getDefaultGroup();
        }

        //Set chgrp for non-recursive request
        if (!$recurse) {
            return $this->chgrpReal($path, $group);
        }

        //Recursive chown
        return $this->chgrpRecurse($path, $group);
    }
public function chgrp($path, $group = null, $recurse = false)
    {
        if (!file_exists($path)) {
            return false;
        }

        if (!isset($group)) {
            $group = $this->getDefaultGroup();
        }

        //Set chgrp for non-recursive request
        if (!$recurse) {
            return $this->chgrpReal($path, $group);
        }

        //Recursive chown
        return $this->chgrpRecurse($path, $group);
    }
public function chgrp ( $ path , $ group = null , $ recurse = false ) { if ( ! file_exists ( $ path ) ) { return false ; } if ( ! isset ( $ group ) ) { $ group = $ this -> getDefaultGroup ( ) ; } //Set chgrp for non-recursive request if ( ! $ recurse ) { return $ this -> chgrpReal ( $ path , $ group ) ; } //Recursive chown return $ this -> chgrpRecurse ( $ path , $ group ) ; }
Change group permission

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

@return bool
Change group permission