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++; }