src/AzureAdapter.php
protected function normalizeBlobProperties($path, BlobProperties $properties)
    {
        if (substr($path, -1) === '/') {
            return ['type' => 'dir', 'path' => $this->removePathPrefix(rtrim($path, '/'))];
        }

        $path = $this->removePathPrefix($path);

        return [
            'path' => $path,
            'timestamp' => (int) $properties->getLastModified()->format('U'),
            'dirname' => Util::dirname($path),
            'mimetype' => $properties->getContentType(),
            'size' => $properties->getContentLength(),
            'type' => 'file',
        ];
    }
protected function normalizeBlobProperties($path, BlobProperties $properties)
    {
        if (substr($path, -1) === '/') {
            return ['type' => 'dir', 'path' => $this->removePathPrefix(rtrim($path, '/'))];
        }

        $path = $this->removePathPrefix($path);

        return [
            'path' => $path,
            'timestamp' => (int) $properties->getLastModified()->format('U'),
            'dirname' => Util::dirname($path),
            'mimetype' => $properties->getContentType(),
            'size' => $properties->getContentLength(),
            'type' => 'file',
        ];
    }
protected function normalizeBlobProperties ( $ path , BlobProperties $ properties ) { if ( substr ( $ path , - 1 ) === '/' ) { return [ 'type' => 'dir' , 'path' => $ this -> removePathPrefix ( rtrim ( $ path , '/' ) ) ] ; } $ path = $ this -> removePathPrefix ( $ path ) ; return [ 'path' => $ path , 'timestamp' => ( int ) $ properties -> getLastModified ( ) -> format ( 'U' ) , 'dirname' => Util :: dirname ( $ path ) , 'mimetype' => $ properties -> getContentType ( ) , 'size' => $ properties -> getContentLength ( ) , 'type' => 'file' , ] ; }
Builds the normalized output array from a Blob object.

@param string         $path
@param BlobProperties $properties

@return array
Builds the normalized output array from a Blob object .