mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Remove a warning by making sure the renamed file is a dir before trying and opening it
This commit is contained in:
parent
7e3aa0de86
commit
42d59d5a16
1 changed files with 1 additions and 1 deletions
2
lib/files/cache/scanner.php
vendored
2
lib/files/cache/scanner.php
vendored
|
|
@ -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 !== '..') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue