Remove a warning by making sure the renamed file is a dir before trying and opening it

This commit is contained in:
TheSFReader 2013-02-02 23:18:29 +01:00
parent 7e3aa0de86
commit 42d59d5a16

View 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 !== '..') {