def get_ext(path):
    """Get file extension.

    Finds a file's extension and returns it.

    Parameters
    ----------
    path : str
        The path to a file.

    Returns
    -------
    str
        The file extension including leading "."
    """
    return path[path.rfind(".") :]