fix:rmdir(XXXX): Text file busy

pull/515/head
reatang 2022-10-26 23:56:52 +08:00 committed by Karson
parent fa2992687b
commit 53e916eeb7
1 changed files with 1 additions and 0 deletions

View File

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