mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #12162 from owncloud/ext-s3-missingfolderwithsamename
Do not remove dir entry if it has the same name as the parent
This commit is contained in:
commit
df18bd3e0d
1 changed files with 1 additions and 4 deletions
|
|
@ -267,10 +267,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
|||
$file = basename(
|
||||
isset($object['Key']) ? $object['Key'] : $object['Prefix']
|
||||
);
|
||||
|
||||
if ($file != basename($path)) {
|
||||
$files[] = $file;
|
||||
}
|
||||
$files[] = $file;
|
||||
}
|
||||
|
||||
\OC\Files\Stream\Dir::register('amazons3' . $path, $files);
|
||||
|
|
|
|||
Loading…
Reference in a new issue