def build_path(tmp_path_factory):
    """Provides a temp directory with various files in it."""
    magic = tmp_path_factory.mktemp('build_magic')
    file1 = magic / 'file1.txt'
    file2 = magic / 'file2.txt'
    file1.write_text('hello')
    file2.write_text('world')
    return magic