Merge pull request #564 from ProgerXP/patch-del

Make File::delete() return result of unlink()
This commit is contained in:
Taylor Otwell 2012-05-03 06:26:02 -07:00
commit f53c8285a7
1 changed files with 2 additions and 2 deletions

View File

@ -61,11 +61,11 @@ public static function append($path, $data)
* 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);
}
/**