瀏覽代碼

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);



||||||
x
 
000:0
Loading…
取消
儲存