make displaying hidden files in local browser optional

This commit is contained in:
Andrzej Rybczak
2009-05-07 15:17:59 +02:00
parent f92b0101aa
commit 5682734840
5 changed files with 13 additions and 0 deletions

View File

@@ -342,6 +342,8 @@ void Browser::GetLocalDirectory(ItemList &v)
while ((file = readdir(dir)))
{
if (!Config.local_browser_show_hidden_files && file->d_name[0] == '.')
continue;
Item new_item;
full_path = itsBrowsedDir;
if (itsBrowsedDir != "/")