def get_extension(path, format):
    """
    Return the extension of the path, if any
    """
    splits = path.split(".")
    if len(splits) == 1:
        # This means there's no two parts - so either no ., or nothing before
        # or after the .. Easier to handle by just saying we found no extensions
        return ""
    return splits[-1]