def get_name(path):
    """
    Get a file name from its full path.
    Args:
      path (str): full path
    Returns:
      name (str): just the file name
    """

    splits = path.split("/")
    if splits[-1] == "":
        name = splits[-2]
    else:
        name = splits[-1]

    return name