diff --git a/Classes/Driver/AmazonS3Driver.php b/Classes/Driver/AmazonS3Driver.php index 0fa3579..c1420c4 100644 --- a/Classes/Driver/AmazonS3Driver.php +++ b/Classes/Driver/AmazonS3Driver.php @@ -796,7 +796,7 @@ public function getFolderInfoByIdentifier($folderIdentifier) $this->normalizeIdentifier($folderIdentifier); return [ - 'identifier' => $folderIdentifier, + 'identifier' => rtrim($folderIdentifier, '/') . '/', 'name' => basename(rtrim($folderIdentifier, '/')), 'storage' => $this->storageUid, 'mtime' => null, @@ -1451,7 +1451,7 @@ protected function getFolder($identifier) return $this->getRootLevelFolder(); } $this->normalizeIdentifier($identifier); - return new Folder($this->getStorage(), $identifier, basename(rtrim($identifier, '/'))); + return new Folder($this->getStorage(), rtrim($identifier, '/') . '/', basename(rtrim($identifier, '/'))); } /**