import pathlib


def get_extension(path):
    """Get file extension/prefix

    The dot is strippped if there is one.

    Args:
        path (str): Filename

    Returns:
        (str) File extension or blank string

    """
    suffix = pathlib.Path(path).suffix
    # Return suffix is nonempty without the starting dot
    # or blank string if theres none
    if suffix and suffix.startswith("."):
        return suffix[1:]
    else:
        return ""