From e7c7ee32a21dae1dac9a5ee7b1fd429fd1faa0da Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 10 Mar 2009 09:47:42 +0000 Subject: [PATCH] - Patch #381306 by plach: closing file handler to avoid problems on certain systems. --- includes/file.inc | 1 + 1 file changed, 1 insertion(+) 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);