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

View File

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