Skip to content
Snippets Groups Projects
Commit 42d59d5a authored by TheSFReader's avatar TheSFReader
Browse files

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

parent 7e3aa0de
No related branches found
No related tags found
No related merge requests found
......@@ -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 !== '..') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment