Skip to content

Commit 68a75b2

Browse files
committed
B2B-1876: New directories in pub/media do not get synced back to local filesystem from S3 Remote Storage
1 parent eedf671 commit 68a75b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ public function getDirsCollection($path)
385385
*/
386386
public function getFilesCollection($path, $type = null)
387387
{
388+
if (!($this->isDirectoryAllowed($path))) {
389+
return $this->getCollection(null);
390+
}
391+
388392
if ($this->_coreFileStorageDb->checkDbUsage()) {
389393
$files = $this->_storageDatabaseFactory->create()->getDirectoryFiles($path);
390394

0 commit comments

Comments
 (0)