]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove a warning by making sure the renamed file is a dir before trying and opening it
authorTheSFReader <TheSFReader@gmail.com>
Sat, 2 Feb 2013 22:18:29 +0000 (23:18 +0100)
committerTheSFReader <TheSFReader@gmail.com>
Sat, 2 Feb 2013 22:18:29 +0000 (23:18 +0100)
lib/files/cache/scanner.php

index bf0ef01d6b31dea6f373c1b3c332abb7444045e0..8d504af6163caf4d30642efce8f0ca531cbd60b4 100644 (file)
@@ -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 !== '..') {