diff options
Diffstat (limited to 'backends/fs')
-rw-r--r-- | backends/fs/posix/posix-fs.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp index 60aa6de59c..11301b8a9c 100644 --- a/backends/fs/posix/posix-fs.cpp +++ b/backends/fs/posix/posix-fs.cpp @@ -93,6 +93,10 @@ FSList *POSIXFilesystemNode::listDir() const { // ... loop over dir entries using readdir while ((dp = readdir(dirp)) != NULL) { + // Skip 'invisible' files + if (dp->d_name[0] == '.') + continue; + POSIXFilesystemNode entry; entry._displayName = dp->d_name; entry._isDirectory = (dp->d_type == DT_DIR); // TODO - add support for symlinks to dirs? |