import pathlib


def create_file(root_path, file_name):
    """Touch file of file_name at root_path.

    This function touch new empty file which name file_name at root_path.

    ----------

    Args:
        root_path(str): project rootpath.
        file_name(str): file name created under project root.

    Returns:
        result(boolean): flag for judge file created successfully.

    """
    file_path_str = root_path + "/" + file_name
    file_path = pathlib.Path(file_path_str)
    if file_path.exists():
        print("{} if already exists.".format(file_path_str))
        result = False
        return result
    else:
        file_path.touch()
        result = True
        return True