Skip to content

Commit f958756

Browse files
ihaveamacfincs
authored andcommitted
Ignore directory entries that start with a period
POSIX systems usually hide these files, so they should be hidden here as well. macOS especially can create a ton of dotfiles (`.DS_Store`, "`._`" files) that can create useless entries.
1 parent 8d21668 commit f958756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/menu-list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ int menuScan(const char* target)
106106
FS_DirectoryEntry* entry = &dirSt->entry_data[dirSt->index];
107107
menuEntry_s* me = NULL;
108108
bool shortcut = false;
109-
if (entry->attributes & FS_ATTRIBUTE_HIDDEN)
109+
if (entry->attributes & FS_ATTRIBUTE_HIDDEN || dp->d_name[0] == '.')
110110
continue;
111111

112112
if (entry->attributes & FS_ATTRIBUTE_DIRECTORY)

0 commit comments

Comments
 (0)