import pathlib


def path_to_mrl(file_path):
    """Convert a filesystem path to MRL.

    Args:
        file_path (path.Path or str): Path to the resource.

    Returns:
        str: Path to the resource within MRL format.
    """
    return pathlib.Path(file_path).as_uri()