From 6ed00cd055abcc98b8ad5d4e2ac6396852ec9c95 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 22 Jul 2006 14:14:16 +0000 Subject: Added FilesystemNode::name method svn-id: r23553 --- backends/fs/windows/windows-fs.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'backends/fs/windows') diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index 4c5cd44f49..aadfdc9d3e 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -45,13 +45,14 @@ public: WindowsFilesystemNode(const String &path); virtual String displayName() const { return _displayName; } + virtual String name() const { return _displayName; } virtual bool isValid() const { return _isValid; } virtual bool isDirectory() const { return _isDirectory; } virtual String path() const { return _path; } virtual bool listDir(AbstractFSList &list, ListMode mode) const; virtual AbstractFilesystemNode *parent() const; - virtual AbstractFilesystemNode *child(const String &name) const; + virtual AbstractFilesystemNode *child(const String &n) const; private: static char *toAscii(TCHAR *x); @@ -240,12 +241,12 @@ AbstractFilesystemNode *WindowsFilesystemNode::parent() const { return p; } -AbstractFilesystemNode *WindowsFilesystemNode::child(const String &name) const { +AbstractFilesystemNode *WindowsFilesystemNode::child(const String &n) const { assert(_isDirectory); String newPath(_path); if (_path.lastChar() != '\\') newPath += '\\'; - newPath += name; + newPath += n; // Check whether the directory actually exists DWORD fileAttribs = GetFileAttributes(toUnicode(newPath.c_str())); -- cgit v1.2.3