Browse Source

File::delete() now returns result of unlink().

Signed-off-by: Pavel <proger.xp@gmail.com>
Pavel 12 years ago
parent
commit
1b9566070b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      laravel/file.php

+ 2 - 2
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);
 	}
 
 	/**