Fixing weird lstat bug on Windows for rrmdir function for large amount of directory items
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Pavel Shevaev 2024-08-30 11:56:33 +03:00
parent 6b40e78795
commit 5b1a5ec442
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ function rrmdir(string $dir, bool $remove_top_dir = true)
{ {
if($object != "." && $object != "..") if($object != "." && $object != "..")
{ {
if(filetype($dir."/".$object) == "dir") if(is_dir($dir."/".$object))
rrmdir($dir."/".$object); rrmdir($dir."/".$object);
else else
unlink($dir."/".$object); unlink($dir."/".$object);