summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTheSFReader <TheSFReader@gmail.com>2013-02-02 23:18:29 +0100
committerTheSFReader <TheSFReader@gmail.com>2013-02-02 23:18:29 +0100
commit42d59d5a1658dde5d428ae855de524411c311048 (patch)
tree846367c98cc53de35cb84f596bc62e2177322413 /lib
parent7e3aa0de865072e37f135debad66b71673ff5763 (diff)
downloadnextcloud-server-42d59d5a1658dde5d428ae855de524411c311048.tar.gz
nextcloud-server-42d59d5a1658dde5d428ae855de524411c311048.zip
Remove a warning by making sure the renamed file is a dir before trying and opening it
Diffstat (limited to 'lib')
-rw-r--r--lib/files/cache/scanner.php2
1 files changed, 1 insertions, 1 deletions
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 !== '..') {