0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-30 09:43:02 +00:00

(file device)Add / suffix to folder names

This commit is contained in:
Devine Lu Linvega 2023-02-17 10:08:00 -08:00
parent c61be654d6
commit 60080d8fe8

View file

@ -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