public static function remove($path, $recursive = false)
    {
        $returnValue = (bool) false;

		if ($recursive) {
			$returnValue = helpers_File::remove($path);
		} elseif (is_file($path)) {
        	$returnValue = @unlink($path);
        }
        // else fail silently

        return (bool) $returnValue;
    }
public static function remove($path, $recursive = false)
    {
        $returnValue = (bool) false;

		if ($recursive) {
			$returnValue = helpers_File::remove($path);
		} elseif (is_file($path)) {
        	$returnValue = @unlink($path);
        }
        // else fail silently

        return (bool) $returnValue;
    }
public static function remove ( $ path , $ recursive = false ) { $ returnValue = ( bool ) false ; if ( $ recursive ) { $ returnValue = helpers_File :: remove ( $ path ) ; } elseif ( is_file ( $ path ) ) { $ returnValue = @ unlink ( $ path ) ; } // else fail silently return ( bool ) $ returnValue ; }
Remove a file. If the recursive parameter is set to true, the target file
can be a directory that contains data.

@author Lionel Lecaque, <lionel@taotesting.com>
@param  string $path The path to the file you want to remove.
@param  boolean $recursive (optional, default is false) Remove file content recursively (only if the path points to a directory).
@return boolean Return true if the file is correctly removed, false otherwise.
Remove a file . If the recursive parameter is set to true the target file can be a directory that contains data .