mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
update snap location check
This commit is contained in:
parent
5e4494c9e8
commit
22c73fb922
1 changed files with 2 additions and 2 deletions
|
|
@ -109,9 +109,9 @@ foreach ($config->cli->document->crawl->skip->stripos->url as $condition)
|
|||
)
|
||||
);
|
||||
|
||||
if (file_exists($location))
|
||||
if (is_dir($location))
|
||||
{
|
||||
if (unlink($location))
|
||||
if (rmdir($location))
|
||||
{
|
||||
$snaps++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue