From 5b1a5ec442a90a67e92e42326a6de08b141ca0db Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Fri, 30 Aug 2024 11:56:33 +0300 Subject: [PATCH] Fixing weird lstat bug on Windows for rrmdir function for large amount of directory items --- helpers.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.inc.php b/helpers.inc.php index 03568f6..55d667e 100644 --- a/helpers.inc.php +++ b/helpers.inc.php @@ -587,7 +587,7 @@ function rrmdir(string $dir, bool $remove_top_dir = true) { if($object != "." && $object != "..") { - if(filetype($dir."/".$object) == "dir") + if(is_dir($dir."/".$object)) rrmdir($dir."/".$object); else unlink($dir."/".$object);