From 914f4cb6f2755b1856bc3d169292aa5eaddff59d 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 53adb929e29..4d94e3561f8 100644 --- a/apps/files_external/lib/amazons3.php +++ b/apps/files_external/lib/amazons3.php @@ -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); -- 2.39.5