diff --git a/includes/file.inc b/includes/file.inc index 477f06b5a34..98b671e70c5 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -834,6 +834,7 @@ function file_unmanaged_delete_recursive($path) { $entry_path = $path . '/' . $entry; file_unmanaged_delete_recursive($entry_path); } + $dir->close(); return rmdir($path); } return file_unmanaged_delete($path);