from pathlib import Path


def get_folder(sourcepath):
    """ outputs the file names from a path

    Args:
        sourcepath (string): the path to the file

    Returns:
        string: the folder containing the file
    """
    return Path(sourcepath).parents[0]