(file device)Add / suffix to folder names

This commit is contained in:
Devine Lu Linvega 2023-02-17 10:08:13 -08:00
parent 8cf9d55c1c
commit 903ca57ad5
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ get_entry(char *p, Uint16 len, const char *pathname, const char *basename, int f
if(stat(pathname, &st)) if(stat(pathname, &st))
return fail_nonzero ? sprintf(p, "!!!! %s\n", basename) : 0; return fail_nonzero ? sprintf(p, "!!!! %s\n", basename) : 0;
else if(S_ISDIR(st.st_mode)) else if(S_ISDIR(st.st_mode))
return sprintf(p, "---- %s\n", basename); return sprintf(p, "---- %s/\n", basename);
else if(st.st_size < 0x10000) else if(st.st_size < 0x10000)
return sprintf(p, "%04x %s\n", (unsigned int)st.st_size, basename); return sprintf(p, "%04x %s\n", (unsigned int)st.st_size, basename);
else else