mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-09 20:38:40 +00:00
check if is file
This commit is contained in:
parent
42724218df
commit
d24bcd69e9
|
|
@ -91,7 +91,7 @@ class Cache
|
|||
/** @var \DirectoryIterator $item */
|
||||
foreach ($iterator as $item) {
|
||||
if (!$item->isDot()
|
||||
&& $item->isFile()
|
||||
&& \is_file($item->getPathname())
|
||||
&& !$this->isDotFile($item)
|
||||
&& $this->isOld($item)) {
|
||||
unlink($item->getPathname());
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user