TYPE_DIR
if (entry_type == TYPE_FILE || entry_type == TYPE_DIR) {
if (entry_type != TYPE_DIR)
if (type != TYPE_FILE && type != TYPE_DIR) {
return TYPE_DIR;
} else if (type == TYPE_DIR) {
if (ei->type != TYPE_DIR)
if (ei->type != TYPE_FILE && ei->type != TYPE_DIR)
bool is_dir = (ei->type == TYPE_DIR);
if (type == TYPE_DIR && !sbi->options.zero_size_dir) {
if (info->type == TYPE_DIR) {
err = exfat_add_entry(dir, dentry->d_name.name, TYPE_DIR, &info);
if (type != TYPE_FILE && type != TYPE_DIR)
ei->type = TYPE_DIR;