Skip to content

Commit

Permalink
Merge pull request #73 from dibas/fix/osxhiddenfiles
Browse files Browse the repository at this point in the history
Don't include OS X system files in directory listings. Fixes #41
  • Loading branch information
dibas committed May 4, 2016
2 parents 64898c9 + 491c260 commit a5a7dcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fs/DirList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ void DirList::AddEntrie(const std::string &filepath, const char * filename, bool
if(!filename)
return;

// Don't list hidden OS X files
if(filename[0] == '.' && filename[1] == '_')
return;

int pos = FileInfo.size();

FileInfo.resize(pos+1);
Expand Down

0 comments on commit a5a7dcf

Please sign in to comment.