def getRawName(path):
    """
    Given a filename with no path before it, returns just the name, no type

    :returns filename
    """
    loc = path.rfind(".")
    if loc == -1:
        return loc
    else:
        return path[0:loc]