public static function chownPath($path, $user = null, $recursive = true)
    {
        $path = realpath($path);
        if (empty($path)) {
            return false;
        }

        if (empty($user)) {
            $user = self::getDefaultUser();
        }
        self::chown($path, $user, $recursive);
        return true;
    }
public static function chownPath($path, $user = null, $recursive = true)
    {
        $path = realpath($path);
        if (empty($path)) {
            return false;
        }

        if (empty($user)) {
            $user = self::getDefaultUser();
        }
        self::chown($path, $user, $recursive);
        return true;
    }
public static function chownPath ( $ path , $ user = null , $ recursive = true ) { $ path = realpath ( $ path ) ; if ( empty ( $ path ) ) { return false ; } if ( empty ( $ user ) ) { $ user = self :: getDefaultUser ( ) ; } self :: chown ( $ path , $ user , $ recursive ) ; return true ; }
Change user ownership on path

@param  string  $path      Path to chown
@param  string  $user      User to change ownership to
@param  boolean $recursive Recurse into path or no (default: yes)
@return boolean True on success, or exception on failure
Change user ownership on path