Skip to content

Commit 2105bb9

Browse files
committed
Set delimiter so that the CommonPrefixes response can properly be determined
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 6ba3a46 commit 2105bb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/files_external/lib/Lib/Storage/AmazonS3.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ private function doesDirectoryExist($path) {
163163
'Bucket' => $this->bucket,
164164
'Prefix' => rtrim($path, '/'),
165165
'MaxKeys' => 1,
166+
'Delimiter' => '/',
166167
]);
167168
$this->directoryCache[$path] =
168169
$result['Contents'][0]['Key'] === rtrim($path, '/') . '/' ||

0 commit comments

Comments
 (0)