diff options
author | Max Horn | 2002-11-14 14:42:04 +0000 |
---|---|---|
committer | Max Horn | 2002-11-14 14:42:04 +0000 |
commit | 73946c1c26698e263d798758935885cbeb7c6ced (patch) | |
tree | 127d3dfa09f10cca151da300b50a8a2f99916b3d /backends | |
parent | 75f3f4aff257c5bfe669a2a660b19ade7f36a851 (diff) | |
download | scummvm-rg350-73946c1c26698e263d798758935885cbeb7c6ced.tar.gz scummvm-rg350-73946c1c26698e263d798758935885cbeb7c6ced.tar.bz2 scummvm-rg350-73946c1c26698e263d798758935885cbeb7c6ced.zip |
hide 'invisible' files
svn-id: r5550
Diffstat (limited to 'backends')
-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? |