from typing import List
import tempfile
import shutil


def files_to_tempdir(files: List[str], suffix="protons-test", prefix="tmp") -> str:
    """Make a temporary directory in the current directory, copy files over and return the location."""
    newdir = tempfile.mkdtemp(prefix=prefix, suffix=suffix)

    for filename in files:
        shutil.copy(filename, newdir)

    return newdir