- if(!access("basic.conf", F_OK) || errno != ENOENT) {
- cerr << "Configuration not fully destroyed\n";
- return 1;
+ // Destroy the mesh.
+
+ assert(meshlink::destroy("basicpp_conf"));
+
+ DIR *dir = opendir("basicpp_conf");
+ assert(dir);
+ struct dirent *ent;
+ while((ent = readdir(dir))) {
+ assert(!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, ".."));