diff options
Diffstat (limited to 'backends/fs')
-rw-r--r-- | backends/fs/posix/posix-fs.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp index 26b3075436..43574ac818 100644 --- a/backends/fs/posix/posix-fs.cpp +++ b/backends/fs/posix/posix-fs.cpp @@ -161,10 +161,13 @@ FilesystemNode *POSIXFilesystemNode::parent() const { const char *end = lastPathComponent(_path); p->_path = String(start, end - start); - p->_isValid = true; - p->_isDirectory = true; p->_displayName = lastPathComponent(p->_path); + } else { + p->_path = _path; + p->_displayName = _displayName; } + p->_isValid = true; + p->_isDirectory = true; return p; } |