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

Signed-off-by: Pavel <proger.xp@gmail.com>
This commit is contained in:
Pavel 2012-04-20 00:07:15 +04:00
parent 1192abe39c
commit 1b9566070b
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);
}
/**