1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-25 06:55:05 +01:00

Update FileSystem.php

This commit is contained in:
Luca 2020-06-25 17:58:23 +02:00
parent de0b040ded
commit 402da5a050

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
*
@ -74,11 +74,11 @@ class FileSystem
if ($path !== false && $path != '' && file_exists($path)) {
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS)) as $object) {
$count += 1;
$total += 1;
}
}
return $count;
return $total;
}