src/GoogleStorageAdapter.php
protected function normaliseObject(StorageObject $object)
    {
        $name = $this->removePathPrefix($object->name());
        $info = $object->info();

        $isDir = substr($name, -1) === '/';
        if ($isDir) {
            $name = rtrim($name, '/');
        }

        return [
            'type' => $isDir ? 'dir' : 'file',
            'dirname' => Util::dirname($name),
            'path' => $name,
            'timestamp' => strtotime($info['updated']),
            'mimetype' => isset($info['contentType']) ? $info['contentType'] : '',
            'size' => $info['size'],
        ];
    }
protected function normaliseObject(StorageObject $object)
    {
        $name = $this->removePathPrefix($object->name());
        $info = $object->info();

        $isDir = substr($name, -1) === '/';
        if ($isDir) {
            $name = rtrim($name, '/');
        }

        return [
            'type' => $isDir ? 'dir' : 'file',
            'dirname' => Util::dirname($name),
            'path' => $name,
            'timestamp' => strtotime($info['updated']),
            'mimetype' => isset($info['contentType']) ? $info['contentType'] : '',
            'size' => $info['size'],
        ];
    }
protected function normaliseObject ( StorageObject $ object ) { $ name = $ this -> removePathPrefix ( $ object -> name ( ) ) ; $ info = $ object -> info ( ) ; $ isDir = substr ( $ name , - 1 ) === '/' ; if ( $ isDir ) { $ name = rtrim ( $ name , '/' ) ; } return [ 'type' => $ isDir ? 'dir' : 'file' , 'dirname' => Util :: dirname ( $ name ) , 'path' => $ name , 'timestamp' => strtotime ( $ info [ 'updated' ] ) , 'mimetype' => isset ( $ info [ 'contentType' ] ) ? $ info [ 'contentType' ] : '' , 'size' => $ info [ 'size' ] , ] ; }
Returns a dictionary of object metadata from an object.

@param StorageObject $object

@return array
Returns a dictionary of object metadata from an object .