addDirectory method
Makes id behave as if path already exists as a directory, so a
test can exercise putArchive without going through a real mkdir.
The root / is already present on every container.
Implementation
void addDirectory(String id, String path) {
_require(id).directories.add(p.posix.normalize(path));
}