Update FileSystem.php

This commit is contained in:
Luca 2020-06-25 17:58:23 +02:00
parent de0b040ded
commit 402da5a050
1 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ class FileSystem
/** /**
* Restituisce il numero di file contenuti in una cartella indicata. * Restituisce il numero di file contenuti nella cartella indicata.
* *
* @param string $path * @param string $path
* *
@ -74,11 +74,11 @@ class FileSystem
if ($path !== false && $path != '' && file_exists($path)) { if ($path !== false && $path != '' && file_exists($path)) {
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS)) as $object) { foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS)) as $object) {
$count += 1; $total += 1;
} }
} }
return $count; return $total;
} }