1
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Kiri\Abstracts;
|
namespace Kiri\Abstracts;
|
||||||
|
|
||||||
|
use DirectoryIterator;
|
||||||
use Kiri\Kiri;
|
use Kiri\Kiri;
|
||||||
use Note\Inject;
|
use Note\Inject;
|
||||||
use Exception;
|
use Exception;
|
||||||
@@ -199,8 +200,8 @@ class Logger implements LoggerInterface
|
|||||||
*/
|
*/
|
||||||
private function removeFile(string $dirname)
|
private function removeFile(string $dirname)
|
||||||
{
|
{
|
||||||
$paths = new \DirectoryIterator($dirname);
|
$paths = new DirectoryIterator($dirname);
|
||||||
/** @var \DirectoryIterator $path */
|
/** @var DirectoryIterator $path */
|
||||||
foreach ($paths as $path) {
|
foreach ($paths as $path) {
|
||||||
if ($path->isDot() || str_starts_with($path->getFilename(), '.')) {
|
if ($path->isDot() || str_starts_with($path->getFilename(), '.')) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user