- exfat_bug("directory `%s' is not found", path);
- if (!(parent->flags & EXFAT_ATTRIB_DIR))
- exfat_bug("`%s' is not a directory (0x%x)", path, parent->flags);
+ exfat_bug("directory '%s' is not found", path);
+ if (!(parent->attrib & EXFAT_ATTRIB_DIR))
+ exfat_bug("'%s' is not a directory (%#hx)", path, parent->attrib);
+ if (nodeck(ef, parent) != 0)
+ {
+ exfat_put_node(ef, parent);
+ return;
+ }