fix:rmdir(XXXX): Text file busy

pull/420/head
reatang 2022-10-26 23:56:52 +08:00
parent 007d832f94
commit 87630bac8f
1 changed files with 1 additions and 0 deletions

View File

@ -1295,6 +1295,7 @@ EOD;
$iterator = new \FilesystemIterator($parentDir);
$isDirEmpty = !$iterator->valid();
if ($isDirEmpty) {
unset($iterator);
rmdir($parentDir);
$parentDir = dirname($parentDir);
} else {