From 22c73fb922f5a3125e586d337af8dbefdcddd3d0 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 21 Mar 2024 18:50:14 +0200 Subject: [PATCH] update snap location check --- src/cli/document/clean.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/document/clean.php b/src/cli/document/clean.php index 3dcff8d..4b123ee 100644 --- a/src/cli/document/clean.php +++ b/src/cli/document/clean.php @@ -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++; }