Skip to content

Commit

Permalink
Files/MDL-14231: reverting previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
scyrma committed Oct 9, 2008
1 parent 3da3316 commit db3a0b3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/filelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -1472,8 +1471,6 @@ function fulldelete($location) {
if (!unlink($location)) {
return false;
}
} else {
return false;
}
return true;
}
Expand Down

0 comments on commit db3a0b3

Please sign in to comment.