Browse Source

Merge pull request #564 from ProgerXP/patch-del

Make File::delete() return result of unlink()
Taylor Otwell 12 years ago
parent
commit
f53c8285a7
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.
 	 * Delete a file.
 	 *
 	 *
 	 * @param  string  $path
 	 * @param  string  $path
-	 * @return void
+	 * @return bool
 	 */
 	 */
 	public static function delete($path)
 	public static function delete($path)
 	{
 	{
-		if (static::exists($path)) @unlink($path);
+		if (static::exists($path)) return @unlink($path);
 	}
 	}
 
 
 	/**
 	/**