From 903ca57ad5ec89865c9b98c05cf4f94421654cec Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 17 Feb 2023 10:08:13 -0800 Subject: [PATCH] (file device)Add / suffix to folder names --- src/devices/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/file.c b/src/devices/file.c index c5f3fbc..7d89564 100644 --- a/src/devices/file.c +++ b/src/devices/file.c @@ -70,7 +70,7 @@ get_entry(char *p, Uint16 len, const char *pathname, const char *basename, int f if(stat(pathname, &st)) return fail_nonzero ? sprintf(p, "!!!! %s\n", basename) : 0; 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) return sprintf(p, "%04x %s\n", (unsigned int)st.st_size, basename); else