Commit 1b956607 authored by Pavel's avatar Pavel

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

Signed-off-by: 's avatarPavel <proger.xp@gmail.com>
parent 1192abe3
...@@ -61,11 +61,11 @@ class File { ...@@ -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);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment