import re


def find_filesystem_test_path(logfile: str) -> str:
    """
    Parse the filesystem path from the log file.

    The 'container-mounts=...' line in each log file contains the location of
    the shared filesystem.

    Parameters
    ----------
    logfiles : str
        A ``string`` of all contents from a logfile.

    Returns
    -------
    str
        Returns a ``string`` of the location of the filesystem.
    """
    container_mounts_line = re.findall(r'container-mounts=\S*:/data', logfile)
    if len(container_mounts_line) == 0:
        print('Unable to find container mount directory. Leaving empty.')
        return '<Unknown>'
    container_data_mount = container_mounts_line[0].replace(
        'container-mounts=', '')
    return container_data_mount