ソースを参照

Show mime in file details

master
Arun Prakash Jana 5年前
コミット
5cb39b0db3
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: A75979F35C080412
1個のファイルの変更6行の追加2行の削除
  1. +6
    -2
      src/nnn.c

+ 6
- 2
src/nnn.c ファイルの表示

@@ -3090,11 +3090,15 @@ static bool show_stats(const char *fpath, const struct stat *sb)

++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);
close(fd);



読み込み中…
キャンセル
保存