From 72c0cc22671f2ce94c8f7aad1f496db289ca342e Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 13 Nov 2014 17:37:56 +0100 Subject: [PATCH] Do not remove dir entry if it has the same name as the parent This fixes an issue when a subdir has the same name as its parent, it would get exluded from the list. --- apps/files_external/lib/amazons3.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php index a3fe183f30e..bc1b56fd9fd 100644 --- a/apps/files_external/lib/amazons3.php +++ b/apps/files_external/lib/amazons3.php @@ -266,10 +266,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); -- 2.39.5