update snap location check

This commit is contained in:
yggverse 2024-03-21 18:50:14 +02:00
parent 5e4494c9e8
commit 22c73fb922

View File

@ -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++; $snaps++;
} }