F::move PHP Method

move() public static method

$move = f::move('test.txt', 'super.txt'); if($move) echo 'The file has been moved';
public static move ( string $old, string $new ) : boolean
$old string The current path for the file
$new string The path to the new location
return boolean
    public static function move($old, $new)
    {
        if (!file_exists($old) || file_exists($new)) {
            return false;
        }
        return @rename($old, $new);
    }