from pathlib import Path


def filename_components(x):
    """ returns a series of tuples that unpacks the filepath name to its coponents

    Arguments:
        x {pahtlib.Path} -- a Path object

    Returns:
        tuple -- tuple of filename, file suffix, file prefix
    """
    fpath = Path(x)
    return (fpath.name, fpath.stem, fpath.suffix)