Skip to content

Commit

Permalink
Exclude "System Volume Information" explicitly. (#15833)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanvb authored Oct 30, 2023
1 parent dfeeb03 commit 9d46953
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libretro-common/lists/dir_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9d46953

Please sign in to comment.