mirror of
https://github.com/jarun/nnn.git
synced 2025-03-23 06:43:18 +00:00
Show dir symbol in symlink file stat
This commit is contained in:
parent
8b8e644cf5
commit
994ee0d790
1 changed files with 4 additions and 0 deletions
4
nnn.c
4
nnn.c
|
@ -1760,6 +1760,10 @@ show_stats(char *fpath, char *fname, struct stat *sb)
|
|||
ssize_t len = readlink(fpath, g_buf, MAX_CMD_LEN);
|
||||
|
||||
if (len != -1) {
|
||||
struct stat tgtsb;
|
||||
if (!stat(fpath, &tgtsb) && S_ISDIR(tgtsb.st_mode))
|
||||
g_buf[len++] = '/';
|
||||
|
||||
g_buf[len] = '\0';
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue