from pathlib import Path


def museum_packages_dir(tmpdir, museum_package):
    """
    Museum package directory that already has a complete package with
    some log files inside it
    """
    path = Path(tmpdir) / "museum_packages"
    path.mkdir(exist_ok=True)

    museum_package.path.rename(path / "1234567")

    (path / "1234567" / "logs" / "ingest-report.html").write_text(
        "<html><body><p>Success</p></body></html>"
    )
    (path / "1234567" / "logs" / "create-sip.log").write_text(
        "SIP was created"
    )

    return path