def strip(file_path, dir: str, extension: str):
    """
    Remove the directory in the front and the extension in the back from a path.
    """
    stripped_name = str(file_path).replace(".", "")
    stripped_name = stripped_name.replace("/", "")
    stripped_name = stripped_name.replace(dir, "")
    stripped_name = stripped_name.replace(extension, "")
    return stripped_name