Skip to content

Commit 6181861

Browse files
Roman HaninRoman Hanin
authored andcommitted
B2B-1610: Upgrade to Flysystem 2.0
- review notes fix.
1 parent c1d776c commit 6181861

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/RemoteStorage/Driver/Adapter/MetadataProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use League\Flysystem\FilesystemAdapter;
1111
use League\Flysystem\FilesystemException;
1212
use League\Flysystem\UnableToRetrieveMetadata;
13-
use Magento\AwsS3\Driver\AwsS3;
1413
use Magento\RemoteStorage\Driver\Adapter\Cache\CacheInterface;
1514

1615
/**
@@ -49,7 +48,7 @@ public function getMetadata(string $path): array
4948
{
5049
$metadata = $this->cache->getMetadata($path);
5150
if ($metadata && is_array($metadata)
52-
&& ($metadata['type'] == AwsS3::TYPE_DIR || $this->isMetadataComplete($metadata))
51+
&& ($metadata['type'] == 'dir' || $this->isMetadataComplete($metadata))
5352
) {
5453
return $metadata;
5554
}

0 commit comments

Comments
 (0)