Storage/src/StreamWrapper.php
private function urlStatFile()
    {
        try {
            $this->object = $this->bucket->object($this->file);
            $info = $this->object->info();
        } catch (ServiceException $e) {
            // couldn't stat file
            return false;
        }

        // equivalent to 100666 and 100444 in octal
        $stats = array(
            'mode' => $this->bucket->isWritable()
                ? self::FILE_WRITABLE_MODE
                : self::FILE_READABLE_MODE
        );
        $this->statsFromFileInfo($info, $stats);
        return $this->makeStatArray($stats);
    }
private function urlStatFile()
    {
        try {
            $this->object = $this->bucket->object($this->file);
            $info = $this->object->info();
        } catch (ServiceException $e) {
            // couldn't stat file
            return false;
        }

        // equivalent to 100666 and 100444 in octal
        $stats = array(
            'mode' => $this->bucket->isWritable()
                ? self::FILE_WRITABLE_MODE
                : self::FILE_READABLE_MODE
        );
        $this->statsFromFileInfo($info, $stats);
        return $this->makeStatArray($stats);
    }
private function urlStatFile ( ) { try { $ this -> object = $ this -> bucket -> object ( $ this -> file ) ; $ info = $ this -> object -> info ( ) ; } catch ( ServiceException $ e ) { // couldn't stat file return false ; } // equivalent to 100666 and 100444 in octal $ stats = array ( 'mode' => $ this -> bucket -> isWritable ( ) ? self :: FILE_WRITABLE_MODE : self :: FILE_READABLE_MODE ) ; $ this -> statsFromFileInfo ( $ info , $ stats ) ; return $ this -> makeStatArray ( $ stats ) ; }
Calculate the `url_stat` response for a file

@return array|bool
Calculate the url_stat response for a file