mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Show mime in file details
This commit is contained in:
parent
7bf7894022
commit
5cb39b0db3
|
@ -3090,11 +3090,15 @@ static bool show_stats(const char *fpath, const struct stat *sb)
|
||||||
|
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
fprintf(fp, " %s", begin);
|
fprintf(fp, " %s\n ", begin);
|
||||||
|
|
||||||
|
/* Show the file mime type */
|
||||||
|
p = get_output(g_buf, CMD_LEN_MAX, "file", FILE_MIME_OPTS, fpath, FALSE);
|
||||||
|
fprintf(fp, "%s", g_buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(fp, "\n\n");
|
fprintf(fp, "\n");
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue