def dealdir(dirname):
    """
    Add delimiter

    Args:
        dirname: The path to process
    Returns:
        The path after being processed
    """
    if "/" != dirname[-1] and "\\" != dirname[-1]:
        dirname += "/"
    return dirname