import shutil


def make_persistent(path, tmp_suffix=".tmp"):
    """
    Make file persistent removing `tmp_suffix` suffix

    :param path: File path
    :return: True if file has been moved, false otherwise
    """
    if not path.endswith(tmp_suffix):
        return False
    shutil.move(path, path[: -len(tmp_suffix)])