def METHOD_NAME(tmpdir):
    """Test that the `test_copy_files` utility can handle both files and folders when the destination does not
    exist."""
    # copy from a src that does not exist
    src = pathlib.Path(tmpdir, "dir1")
    dst = pathlib.Path(tmpdir, "dir2")
    with pytest.raises(FileNotFoundError):
        _copy_files(src, dst)
    # copy to a dst dir that does not exist
    src.mkdir()
    (src / "empty.txt").touch()
    assert not dst.exists()
    _copy_files(src, dst)
    assert dst.is_dir()
    # copy to a destination dir that already exists (no error should be raised)
    _copy_files(src, dst)
    assert dst.is_dir()
    # copy file to a dst that does not exist
    src = pathlib.Path(tmpdir, "dir3", "src-file.txt")
    dst = pathlib.Path(tmpdir, "dir4", "dst-file.txt")
    src.parent.mkdir(parents=True)
    src.touch()
    assert not dst.exists()
    _copy_files(src, dst)
    assert dst.is_file()