From 1b9566070bc9c68ac6b92da1b8c1aefed3500d85 Mon Sep 17 00:00:00 2001 From: Pavel Date: Fri, 20 Apr 2012 00:07:15 +0400 Subject: [PATCH] File::delete() now returns result of unlink(). Signed-off-by: Pavel --- laravel/file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/file.php b/laravel/file.php index 0346c83c..0a0069f1 100644 --- a/laravel/file.php +++ b/laravel/file.php @@ -61,11 +61,11 @@ class File { * Delete a file. * * @param string $path - * @return void + * @return bool */ public static function delete($path) { - if (static::exists($path)) @unlink($path); + if (static::exists($path)) return @unlink($path); } /**