/* removes the parent directory if empty */
rc2 = snprintf(path, sizeof path, "%s/%s", root, id);
assert(rc2 < (int)sizeof path);
/* removes the parent directory if empty */
rc2 = snprintf(path, sizeof path, "%s/%s", root, id);
assert(rc2 < (int)sizeof path);