File::delete() now returns result of unlink().
Signed-off-by: Pavel <proger.xp@gmail.com>
This commit is contained in:
parent
1192abe39c
commit
1b9566070b
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue