Merge pull request #564 from ProgerXP/patch-del
Make File::delete() return result of unlink()
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user