From db3a0b34d402a1beaa0293a5d5906afd9c2e274c Mon Sep 17 00:00:00 2001 From: scyrma Date: Thu, 9 Oct 2008 07:00:56 +0000 Subject: [PATCH] Files/MDL-14231: reverting previous commit. --- lib/filelib.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/filelib.php b/lib/filelib.php index 3eb8c8dade8..56db4787bb7 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -1440,11 +1440,10 @@ function put_records_csv($file, $records, $table = NULL) { /** * Recursively delete the file or folder with path $location. That is, * if it is a file delete it. If it is a folder, delete all its content - * then delete it. Does not throw an error if the location does not exists, - * but will return false. + * then delete it. If $location does not exist to start, that is not + * considered an error. * * @param $location the path to remove. - * @return bool true if the call to unlink() was successful, false otherwise; */ function fulldelete($location) { if (is_dir($location)) { @@ -1472,8 +1471,6 @@ function fulldelete($location) { if (!unlink($location)) { return false; } - } else { - return false; } return true; }