From 9d46953fa2b72b856dcd7d45b7cbf98a3f3b6c8b Mon Sep 17 00:00:00 2001 From: zoltanvb <101990835+zoltanvb@users.noreply.github.com> Date: Mon, 30 Oct 2023 23:33:45 +0100 Subject: [PATCH] Exclude "System Volume Information" explicitly. (#15833) --- libretro-common/lists/dir_list.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libretro-common/lists/dir_list.c b/libretro-common/lists/dir_list.c index bd54c7d2d213..13a2b2267ca7 100644 --- a/libretro-common/lists/dir_list.c +++ b/libretro-common/lists/dir_list.c @@ -184,6 +184,11 @@ static int dir_list_read(const char *dir, if (retro_dirent_is_dir(entry, NULL)) { + /* Exclude this frequent hidden dir on platforms which can not handle hidden attribute */ +#ifndef _WIN32 + if (!include_hidden && strcmp(name, "System Volume Information") == 0) + continue; +#endif if (recursive) dir_list_read(file_path, list, ext_list, include_dirs, include_hidden, include_compressed, recursive);