pub fn materialize( root: &Path, id: &str, version: &str, files: &BTreeMap<String, String>, ) -> Result<PathBuf, String>
Write plugin id’s files under root (if not there yet) and return the folder.
id
files
root