From 42d59d5a1658dde5d428ae855de524411c311048 Mon Sep 17 00:00:00 2001 From: TheSFReader Date: Sat, 2 Feb 2013 23:18:29 +0100 Subject: [PATCH] Remove a warning by making sure the renamed file is a dir before trying and opening it --- lib/files/cache/scanner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php index bf0ef01d6b3..8d504af6163 100644 --- a/lib/files/cache/scanner.php +++ b/lib/files/cache/scanner.php @@ -94,7 +94,7 @@ class Scanner { } $size = 0; - if ($dh = $this->storage->opendir($path)) { + if ($this->storage->is_dir($path) && ($dh = $this->storage->opendir($path))) { \OC_DB::beginTransaction(); while ($file = readdir($dh)) { if ($file !== '.' and $file !== '..') { -- 2.39.5