Permalink
Browse files

Files/MDL-14231: reverting previous commit.

  • Loading branch information...
1 parent bd01857 commit 2efc9eb251e9881958d6e1f75818f0ad40a2dc57 scyrma committed Oct 9, 2008
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/filelib.php
View
@@ -928,11 +928,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)) {
@@ -960,8 +959,6 @@ function fulldelete($location) {
if (!unlink($location)) {
return false;
}
- } else {
- return false;
}
return true;
}

0 comments on commit 2efc9eb

Please sign in to comment.