aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/posix/posix-fs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp
index a9c70673bd..60aa6de59c 100644
--- a/backends/fs/posix/posix-fs.cpp
+++ b/backends/fs/posix/posix-fs.cpp
@@ -97,6 +97,9 @@ FSList *POSIXFilesystemNode::listDir() const {
entry._displayName = dp->d_name;
entry._isDirectory = (dp->d_type == DT_DIR); // TODO - add support for symlinks to dirs?
+ // FIXME - skip any non-directories for now
+ if (!entry._isDirectory) continue;
+
entry._path = _path;
entry._path += dp->d_name;
if (entry._isDirectory)