aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_external/lib/Lib/Storage/AmazonS3.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php
index 6fbe913ec7c..c4c82c6a879 100644
--- a/apps/files_external/lib/Lib/Storage/AmazonS3.php
+++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php
@@ -451,6 +451,9 @@ class AmazonS3 extends \OC\Files\Storage\Common {
}
try {
+ if (isset($this->directoryCache[$path])) {
+ return 'dir';
+ }
if (isset($this->filesCache[$path]) || $this->headObject($path)) {
return 'file';
}