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